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
 

 

Is it possible to pass variables of stem to a skeleton JCL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Csongor

New User


Joined: 23 Apr 2015
Posts: 16
Location: Hungary

PostPosted: Fri Jun 10, 2016 7:33 pm    Post subject: Is it possible to pass variables of stem to a skeleton JCL?
Reply with quote

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

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Jun 10, 2016 7:54 pm    Post subject: Reply to: Is it possible to pass variables of stem to a skeleton JCL?
Reply with quote

not directly...

search the forum using FTINCL and selecting my posts,
lots of tested examples

thelogic ( just disregard the syntax )

do i 1 to stem.0
using the stem.i value
fill all the variables used in the repetitive skel
ftinclude the repetitive skel
end

see here for an approach
http://ibmmainframes.com/viewtopic.php?t=55549&highlight=ftincl

and here for a logic exercise
http://ibmmainframes.com/viewtopic.php?t=60392&highlight=ftincl
Back to top
View user's profile Send private message
Willy Jensen

New User


Joined: 01 Sep 2015
Posts: 96
Location: Switzerland

PostPosted: Sat Jun 11, 2016 8:52 pm    Post subject:
Reply with quote

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

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts TWS 'global' or 'local' variables Steve Coalbran IBM Tools 2 Thu Mar 17, 2016 7:40 pm
This topic is locked: you cannot edit posts or make replies. ISPF skeleton explanation Akshay Yadav TSO/ISPF 2 Tue Feb 16, 2016 12:47 pm
No new posts how to pass data from a rexx program ... Akshay Yadav TSO/ISPF 8 Mon Feb 15, 2016 12:05 pm


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