IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

capture FTCLOSE in a stem variable.


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 1353
Location: Israel

PostPosted: Sun Sep 07, 2008 9:35 pm
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
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: 2358
Location: Israel

PostPosted: Mon Sep 08, 2008 3:36 pm
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: 1353
Location: Israel

PostPosted: Mon Sep 08, 2008 4:11 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Rexx to capture output from TSO HSEND... CLIST & REXX 9
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
Search our Forums:

Back to Top