View previous topic :: View next topic
|
Author |
Message |
S De
New User
Joined: 02 Oct 2021 Posts: 3 Location: India
|
|
|
|
I've a requirement, where I need to use the content of a variable as a variable.
Scenerio is as below:
Variable Parm3 receives a map name(say MAPABC1) from Jcl Parm. I string Parm3 with variable I (value 'I') to generate the map input variable MAPABC1I which I store in say variable map-i.
Now, I need to use content of map-i (i.e MAPABC1I)as a variable.
How can this be achieved? |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2154 Location: USA
|
|
|
|
In COBOL it is not possible.
In general - it is not wise approach. You need to think better about the algorithm, rather than about COBOL. |
|
Back to top |
|
|
S De
New User
Joined: 02 Oct 2021 Posts: 3 Location: India
|
|
|
|
'Thank you' for your opinion |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3077 Location: NYC,USA
|
|
|
|
You can SET some flag and use the appropriate variable why store and use it.
Also what is the rational behind doing all these , tell us the actual purpose . |
|
Back to top |
|
|
|