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
 

 

SYSTSIN and Control-M to set a cycle in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ashayscript

New User


Joined: 05 Dec 2006
Posts: 4
Location: va

PostPosted: Thu Mar 08, 2007 9:02 am    Post subject: SYSTSIN and Control-M to set a cycle in JCL
Reply with quote

I use control-m to set a cycle in my jcl and i need to include that cycle variable in a SYSTSIN. What are my options to do so as if I code the following it will not work


Code:

//set cycle=%%cyc

//SYSTSIN  DD  *
 &cycle
/*


by adding the cycle from control-m in my SYSTSIN, it is not recognized. Any help is appreciated. Thanks
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Mar 08, 2007 9:26 am    Post subject:
Reply with quote

Hello,

&CYCLE looks like a symbolic parameter - symbolic paramaters cannot be resolved in data. They are resolved when a PROCedure is executed/expanded.

You could write a bit of code that would receive the parm data from a symbolic parameter on the EXEC statement, then write it into a PS file. Your SYSTSIN DD would then point to the file instead of DD *.

The EXEC would look like:
Code:
//yourstep  EXEC PGM=yourpgm,PARM='&cycle'
Back to top
View user's profile Send private message
ashayscript

New User


Joined: 05 Dec 2006
Posts: 4
Location: va

PostPosted: Thu Mar 08, 2007 9:54 am    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

&CYCLE looks like a symbolic parameter - symbolic paramaters cannot be resolved in data. They are resolved when a PROCedure is executed/expanded.

You could write a bit of code that would receive the parm data from a symbolic parameter on the EXEC statement, then write it into a PS file. Your SYSTSIN DD would then point to the file instead of DD *.

The EXEC would look like:
Code:
//yourstep  EXEC PGM=yourpgm,PARM='&cycle'


Thank you for the information. I havent dealt with PS files before, but I tried researching a little and found dsorg=ps which is added to dcb. Is this the only thing i need to do to make my output a ps file? And after I have specified the dcb=(dsorg=ps) i could then point my SYSTSIN DD to that output file? Sorry about my lack of knowledge and thank you very much for your help.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Mar 08, 2007 8:06 pm    Post subject:
Reply with quote

You're welcome icon_smile.gif

Yes, dsorg is a parameter that lets you specify PS. If you have a statement in your COBOL program like:
Code:
SELECT myfile ASSIGN TO UT-S-ddname.

you will not need to include the dsorg on your DD statement.

Please let us know if you'd like any other info.
Back to top
View user's profile Send private message
ashayscript

New User


Joined: 05 Dec 2006
Posts: 4
Location: va

PostPosted: Thu Mar 08, 2007 8:15 pm    Post subject:
Reply with quote

dick scherrer wrote:
You're welcome icon_smile.gif

Yes, dsorg is a parameter that lets you specify PS. If you have a statement in your COBOL program like:
Code:
SELECT myfile ASSIGN TO UT-S-ddname.

you will not need to include the dsorg on your DD statement.

Please let us know if you'd like any other info.


Thank you very much for the help. I will experiment some and hopefully will be able to get it done correctly icon_biggrin.gif Thanks again
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Mar 08, 2007 9:17 pm    Post subject:
Reply with quote

You're welcom.

Good luck icon_smile.gif
Back to top
View user's profile Send private message
ashayscript

New User


Joined: 05 Dec 2006
Posts: 4
Location: va

PostPosted: Thu Mar 08, 2007 9:54 pm    Post subject:
Reply with quote

dick scherrer wrote:
You're welcom.

Good luck icon_smile.gif



Works like a charm. Thank you very much for your help icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Mar 08, 2007 9:59 pm    Post subject:
Reply with quote

My pleasure icon_smile.gif
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Control-M manuals JPVRoff All Other Mainframe Topics 0 Fri May 20, 2016 11:15 am
No new posts Which Control block has the DSNTYPE i... sudarshan.srivathsav PL/I & Assembler 4 Thu Jan 28, 2016 11:29 pm
No new posts DFSORT control statements in any order ? ronald masters DFSORT/ICETOOL 2 Tue Dec 15, 2015 11:22 pm


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