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

How to dynamically create the SYSIN card for the next step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sriram.mukundan

New User


Joined: 20 Nov 2007
Posts: 28
Location: chennai

PostPosted: Fri Oct 07, 2011 1:02 pm
Reply with quote

Hi all,

We have a requirement, were we need to do to collect the list of files and then pass it to the next step as input card basically.

Eg:

1) Listcat specific format of the file. say XXXX.YYYY.ZZZZ
i get a output of 10 files as

XXXX.YYYY.ZZZZ1
XXXX.YYYY.ZZZZ2
XXXX.YYYY.ZZZZ3
XXXX.YYYY.ZZZZ4
XXXX.YYYY.ZZZZ5
XXXX.YYYY.ZZZZ6
XXXX.YYYY.ZZZZ7
XXXX.YYYY.ZZZZ8
XXXX.YYYY.ZZZZ9
XXXX.YYYY.ZZZZ10

2) Copy step, which copies the contents of all the files and make it as a single file. all these 10 files should be made as next step input files and copy to single output file.

-Regards
Sriram Mukundan
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Oct 07, 2011 1:06 pm
Reply with quote

You could just concatenate them on SYSIN, no need to copy...
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Oct 07, 2011 1:28 pm
Reply with quote

as usual the question is very unclear....

if, repeat if, the dataset names are to be passed as <data> cards to the <steps> that follow

1) get the dataset list ( irrelevant )
2) <reformat> the <list> in a way acceptable to the <utility> that follows
3) run the <utility> using as input the data produced by the preceding steps

but if on the other side the dataset names are to be used as part of a DD specification, then
1) same as above
2) build the <full> jcl to be used and submit it thru the internal reader
3) the submitted job will be executed

for both steps 2 , searching the forum will yield quite a few examples of listcat reformatting and job building

in both cases it is a three steps approach
in case 1 the third <step> will be static
in case 2 the third<step> will be built dynamically and submitted thru the internal reader
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Oct 07, 2011 6:06 pm
Reply with quote

Quote:
2) Copy step, which copies the contents of all the files and make it as a single file

what if they have different properties like RECFM, LRECL etc...
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Oct 07, 2011 6:16 pm
Reply with quote

Quote:
what if they have different properties like RECFM, LRECL etc...


that should be taken care of in the generation step.

Escapa,

is good of you to mention this point,
since the TS seems incapable of doing anything
and would probably complain if this situation arose.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Oct 07, 2011 6:38 pm
Reply with quote

Yeah..

Fun will be when some chap will create new dataset with same pattern above and TS's job is crewed..
Well... real fun will be when new dataset also has same properties and concatination is successful.. icon_wink.gif
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Oct 07, 2011 7:04 pm
Reply with quote

Escapa wrote:
Yeah..

Fun will be when some chap will create new dataset with same pattern above and TS's job is crewed..
Well... real fun will be when new dataset also has same properties and concatination is successful.. icon_wink.gif

And no provision is made for validation, error checking, etc. because "that can never happen"...but does, three weeks after the TS leaves.
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 JCL sort card - get first day and las... JCL & VSAM 9
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top