Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

capture FTCLOSE in a stem variable.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Sun Sep 07, 2008 4:00 pm    Post subject: capture FTCLOSE in a stem variable.
Reply with quote

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
View user's profile Send private message

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1224
Location: Israel

PostPosted: Sun Sep 07, 2008 9:35 pm    Post subject:
Reply with quote

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
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Mon Sep 08, 2008 1:28 pm    Post subject:
Reply with quote

thanks Marso. it worked. ZTEMPN - is this a keyword?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Sep 08, 2008 3:36 pm    Post subject:
Reply with quote

ZTEMPN is an ISPF variable, described in the fine manual.

O.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1224
Location: Israel

PostPosted: Mon Sep 08, 2008 4:11 pm    Post subject: Reply to: capture FTCLOSE in a stem variable.
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts OPC JCL Variable passion_sujesh IBM Tools 5 Fri Jul 01, 2016 4:21 am
No new posts JOINKEYs and Variable files migusd SYNCSORT 8 Fri Jun 17, 2016 3:16 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us