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!

Use copybook field name

Status
Not open for further replies.

vfisher

Programmer
Apr 15, 2002
40
US
Is there a way to reference the actual value of a field name in a copy book? Example:

01 Test-record
05 recordkey pic x.
05 field1 pic x.

What we would like to do is move the value of the name of the key field - "recordkey" to an output field.
Thanks.
 
Which compiler? If you have a compiler that supports the 2002 "conditional compilation" feature and its "variables", (such as existing Micro Focus extensions), then it MIGHT be possible.

Tell us compiler and OS first and we may be able to provide an answer.

Bill Klein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top