Hi,
Is it possible to get the name of a variable into a variable?
Example:
VAR-1 PIC X(30) VALUE "ANYTHING".
VAR-2 PIC X(30) VALUE SPACES
How can I get "VAR-1" dynamically as value into VAR-2?
How do I get the name of a variable into a variable?
-
- Posts: 2
- Joined: Wed May 30, 2012 8:02 pm
- Skillset: COBOL
- Referer: halfteck
- prino
- Posts: 641
- Joined: Wed Mar 11, 2009 12:22 am
- Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
- Referer: Google
- Location: Vilnius, Lithuania
- Contact:
Re: How do I get the name of a variable into a variable?
You cannot. Period. Full stop. End of story!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
robert.ah.prins @ the.17+Gb.Google thingy
-
- Similar Topics
- Replies
- Views
- Last post
-
- 5
- 4000
-
by sergeyken
View the latest post
Wed Jun 16, 2021 6:23 pm
-
- 1
- 2131
-
by chaat
View the latest post
Wed Sep 22, 2021 11:40 pm
-
- 1
- 1250
-
by sergeyken
View the latest post
Tue Nov 08, 2022 7:22 pm
-
- 1
- 4420
-
by TERMEN
View the latest post
Thu Mar 04, 2021 2:29 am
-
- 2
- 8430
-
by prino
View the latest post
Sat Mar 13, 2021 4:47 am