View previous topic :: View next topic
|
Author |
Message |
sriram.mukundan
New User
Joined: 20 Nov 2007 Posts: 28 Location: chennai
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
You could just concatenate them on SYSIN, no need to copy... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
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.. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
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.. |
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 |
|
|
|