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
 

 

submit all the member in a PDS as batch JOB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
jeevajeeva

New User


Joined: 13 May 2006
Posts: 17

PostPosted: Sat Jul 01, 2006 10:17 am    Post subject: submit all the member in a PDS as batch JOB
Reply with quote

hi,

i have a PDS consist more than 100 members i need to submit all the members as batch jobs at one shot.

is there any way to do that?
Back to top
View user's profile Send private message

Sahoo

New User


Joined: 08 Jun 2006
Posts: 53

PostPosted: Sat Jul 01, 2006 10:40 am    Post subject: Re: submit all the member in a PDS as batch JOB
Reply with quote

You can write a rexx to sumit all the Jobs.

Get the member list by using
x = outtrap("i.",'*',"concat")
" listds " "'" || word(dsn,1) || "' members "
x = outtrap("off")

Then in a loop sumit the Jobs using
do J = 7 to i.0
JCLConcat = dsn||"("||strip(i.J)||")"
address tso "Submit '"JCLConcat"'"
end
Back to top
View user's profile Send private message
jeevajeeva

New User


Joined: 13 May 2006
Posts: 17

PostPosted: Sat Jul 01, 2006 10:45 am    Post subject: Re: submit all the member in a PDS as batch JOB
Reply with quote

hi,

its ok,

but is there any JCL or TSO command to do the same.

if yes then post the JCl
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Sat Jul 01, 2006 5:04 pm    Post subject: Re: submit all the member in a PDS as batch JOB
Reply with quote

Use TSO PRINTDS to convert the entire PDS into a single sequential dataset. Then, submit that dataset.
Back to top
View user's profile Send private message
jeevajeeva

New User


Joined: 13 May 2006
Posts: 17

PostPosted: Mon Jul 03, 2006 8:51 am    Post subject: Re: submit all the member in a PDS as batch JOB
Reply with quote

hi superk,

after submitting the job how can i convert the sequential dataset into PDS.
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Thu Jul 13, 2006 4:28 pm    Post subject: Hi
Reply with quote

Jeev,
Put XDC left to the jobname in spool and give space parameters and name to save that as sequential file.


Sahoo's soln too work but you need to give your PDS name (where all of ur job resides ) to DSN as DSN=XXXX.YYYY.JCLDATASET in the above REXX to work..

-Han.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm


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