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 use variable for SYSIN DD name ?

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

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Mon Jul 24, 2006 4:00 pm    Post subject: How to use variable for SYSIN DD name ?
Reply with quote

I have a Cobol PGM whose output is a report which contains several Dataset Names ???..
1.xx.xx.xx.xx
2.xx.xx.xx.xx1
3.xx.xx.xx.xx2

Now I want to pass these Dataset names to JCL (JCl is for compression) as Input??..one by one??.
In short evertime I want to change SYSIN of my JCL.
Can I do this, if Yes How ?
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: Mon Jul 24, 2006 4:05 pm    Post subject: Re: How to use variable for SYSIN DD name ?
Reply with quote

Simple. The output of the program needs to write the report to a dataset. The step in the JCL needs to read that dataset for it's SYSIN input.
Back to top
View user's profile Send private message
neelesht

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Mon Jul 24, 2006 4:11 pm    Post subject: Re: How to use variable for SYSIN DD name ?
Reply with quote

Thanks.

Okay, I have an output Dataset which contains different file names.......now how these file names will go as an input to JCl or to be more precise how they will go as SYSIN for my JCL.

What my JCL does is , it will take one file as input, compress it and then 2nd as inout and so on.

Please let me know if more clarifications are needed on my requirement.

Thanks.
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: Mon Jul 24, 2006 4:28 pm    Post subject: Re: How to use variable for SYSIN DD name ?
Reply with quote

It seems as if your job needs to pull the first record from the input dataset, pass that to the compresion step as input, then either delete that record or mark it as being done. Then, the next run of the same job would use the next record from the input dataset. This would continue until there are no more records to process.

I would think that it would make the whole process a bit easier if the list of datasets was created as a PDS, with one member for each dataset. Then, you can submit the compression job once for each member of the input PDS.
Back to top
View user's profile Send private message
neelesht

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Mon Jul 24, 2006 4:39 pm    Post subject:
Reply with quote

Thanks SuperK.

You mean to say.... One PDS will contain One member , 2nd PDS will contain 2nd member....and so on, right ?

Okay, now my main concern is, how the member names will go as an input to my JCL and do I need to submit job as many times as number of PDS ?

Once more, I will xplain...... I want to automate the compression process. Our endevor report produces a weekly report which contains dataset name, usage etc. On the basis of usage we need to compress the dataset.
We have been doing this manually till now.

I have compression job ready the only concern in how variable SYSIN DD name can I code in JCL.

Could you let me the pseudo code for the JCL ?

Thanks.
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 Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts Need to know what sysin for DFHTU690 ... pkmurali CICS 3 Mon Jul 25, 2016 1:36 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts OPC JCL Variable passion_sujesh IBM Tools 5 Fri Jul 01, 2016 4:21 am
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm


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