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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 6966
Location: porcelain throne

PostPosted: Thu May 21, 2009 12:01 pm
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
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: 6966
Location: porcelain throne

PostPosted: Thu May 21, 2009 12:18 pm
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
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: 2481
Location: @my desk

PostPosted: Thu May 21, 2009 9:19 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts pass data as symbolic parameter from ... CLIST & REXX 2
No new posts EIBCALEN 0 even if we pass LEN and FR... CICS 4
No new posts How to pass arguments in a ISPSTART c... CLIST & REXX 6
Search our Forums:

Back to Top