Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to dynamically create the SYSIN card for the next step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to dynamically create the SYSIN card for the next step
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Fri Oct 07, 2011 1:06 pm    Post subject: Reply to: How to dynamically create the SYSIN card for the n
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Fri Oct 07, 2011 1:28 pm    Post subject: Reply to: How to dynamically create the SYSIN card for the n
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    Post subject:
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: 6970
Location: porcelain throne

PostPosted: Fri Oct 07, 2011 6:16 pm    Post subject:
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    Post subject:
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: 1783
Location: Bloomington, IL

PostPosted: Fri Oct 07, 2011 7:04 pm    Post subject:
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    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 ICETOOL - RESIZE DYNAMICALLY kranthikumarb DFSORT/ICETOOL 0 Tue Nov 21, 2017 5:30 pm
No new posts How to create issuer certificate? :'( vasanthz All Other Mainframe Topics 1 Sat Nov 18, 2017 5:14 am
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 6 Fri Sep 22, 2017 7:08 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us