View previous topic :: View next topic
|
Author |
Message |
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
Hi,
Is it possible to capture the output of file tailoring commands in a stem variable?
Basically I have a skeleton in which i have two EXEC steps which need to be added to the target JCL depending on the number of times they need to be reproduced. Not sure, i am approaching the problem from right direction?
Regards
Rahul. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
I use temp file to build skeleton:
Code: |
Address ISPEXEC
/* File Tailoring */
"FTOPEN TEMP"
"FTINCL DEFCICSK" /* this is my skel */
"FTCLOSE"
/* read result in stem var */
"VGET (ZTEMPN)"
Address TSO "EXECIO * DISKR "ZTEMPN" (FINIS STEM XXX."
|
|
|
Back to top |
|
|
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
thanks Marso. it worked. ZTEMPN - is this a keyword? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
ZTEMPN is an ISPF variable, described in the fine manual.
O. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
About the second part of the question:
You have a "target JCL" and you want to add a number of steps somewhere in that JCL.
Depending of course on the requirements,
I would use an // INCLUDE in the target JCL: the JCL is then separated from the "dynamic" part and is easy to maintain.
the INCLUDEd part would be created from the skeleton before submitting the job.
In the skeleton, you can use an ISPF table and the )DOT command to repeat a piece of code any number of times. |
|
Back to top |
|
|
|