ekammer1

Variablizing dataset names using rexx counter

Discussion created by ekammer1 on Sep 22, 2015
Latest reply on Oct 20, 2015 by Lenn Thompson

Trying to variablize a dataset names using rexx counter. I have the following in my PROC
COUNTER=0                               
COUNTER=COUNTER+1                       
'CNT='COUNTER     

Then in my JCL on my DD statement I want the 3rd qualifier to increment by one each time through.
DD DSN=A079011.AGENTPRM.AGT!CNT would resolve to
A079011.AGENTPRM.AGT1, A079011.AGENTPRM.AGT2, A079011.AGENTPRM.AGT3 etc…  

 

Any thoughts or ideas?

Outcomes