View previous topic :: View next topic
|
Author |
Message |
Csongor
New User
Joined: 23 Apr 2015 Posts: 16 Location: Hungary
|
|
|
|
Hello!
If I have a stem in REXX, and I want to generate the exact number of steps in the skeleton JCL like the number of variables in the stem, and fill each step with the variables of the stem, each step with different values obviously.
For example I have list gdg -bases and I want to have a job with IDCAMS generated for all the bases to create them. (this is just an example, please do not focus on this particularly)
Can you please help me with suggestions?
(If this question is not at the right place in the rexx section, sorry about it) |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
2 alternate methods:
1: Create a table in your REXX, the skeleton can then do a )DOT / )ENDDOT over the table. Remember to delete the table afterwards.
2: QUEUE the stem, then the skeleton can then do something like this:
Code: |
)REXX QN
qn=queued()
)ENDREXX
)DO N = 1 TO &QN
)REXX DATA
pull data
)ENDREXX
your part comes here
)ENDDO
|
but sadly no direct way to address the stem in a skeleton. |
|
Back to top |
|
|
|