Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redefined and redefining groups are from different copybooks

Status
Not open for further replies.

Ju5

Programmer
May 25, 2007
85
PH
Hi,

I have copybook1 with the following:

05 group1
05 group2 REDEFINES group1

I have copybook2 that contains the following:

05 newgroup

Can I do the following given that the redefining and redefined groups are from different copybooks?
05 group2 REDEFINES newgroup

Thanks in advance.
 
I do not think so - if I understand what you are saying. The REDEFINE has to immediately follow the the group/variable that it is redefining. And why didn't you try it and find out for yourself?


Nic
 
Depending on exactly what you want (and my interpretation), it sounds feasable.

It will probably help if you post what the compiler would see if this was all done inline (without copybooks).

As Nic mentioned, it would be easy (and free - with no wait<g>) to run a test on your system.

 
I was assigned to design the program and while I have view authority on the mainframe I don't think I have compile authority. I'll try to find one of the project developers to test it.

Thanks for the advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top