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
 

 

How to Pass the DSN name to a JCL during runtime?

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

New User


Joined: 21 May 2009
Posts: 8
Location: Chennai

PostPosted: Thu May 21, 2009 11:50 am    Post subject: How to Pass the DSN name to a JCL during runtime?
Reply with quote

Hi,
My job creates a flat file with the DSN names in my first step. I need to use this DSN in the Second step as a input for copying it to another file.

Do we have some method for handling this situation? Please Suggest.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu May 21, 2009 12:01 pm    Post subject:
Reply with quote

suggest splitting the process into two jobs.

1st JOB:
  1. STEP1:create flat file with DSN
  2. STEP2:create and SUBMIT jcl for second job using DSN created in STEP1


2nd Job: your original second step - file copy
Back to top
View user's profile Send private message
SaiHema

New User


Joined: 21 May 2009
Posts: 8
Location: Chennai

PostPosted: Thu May 21, 2009 12:09 pm    Post subject:
Reply with quote

Hi Dick,
Thanks for the response.

Can you please tell me how can the STEP2 in Job1 can be done during runtime without manual interruption?

Are u meaning that, I need to use either a COBOL/any program that generates the JCL?

If so, How can I submit the second job at a stretch.

Please can you give me an example.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu May 21, 2009 12:18 pm    Post subject:
Reply with quote

you could write a COBOL pgm or a REXX Script.
check the TSO/ISPF/REXX forum. there are plenty REXX of examples.

COBOL would have to write to INTRDR, the REXX Script would SUBMIT.
Back to top
View user's profile Send private message
SaiHema

New User


Joined: 21 May 2009
Posts: 8
Location: Chennai

PostPosted: Thu May 21, 2009 12:24 pm    Post subject:
Reply with quote

Thanks Dick. I will Check the REXX examples. Hope this will help me in completing my task.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2284
Location: @my desk

PostPosted: Thu May 21, 2009 9:19 pm    Post subject:
Reply with quote

Quote:
you could write a COBOL pgm or a REXX Script.
Or even a Sort icon_rolleyes.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 JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
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 Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm
No new posts how to pass data from a rexx program ... Akshay Yadav TSO/ISPF 8 Mon Feb 15, 2016 12:05 pm
No new posts How to pass a structure to external p... Pedro PL/I & Assembler 8 Tue Jan 19, 2016 7:05 am


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