View previous topic :: View next topic
|
Author |
Message |
Mind
New User
Joined: 04 Nov 2010 Posts: 9 Location: bangalore
|
|
|
|
Hello Folks,
Can you please give an idea on how to proceed forward. Thanks a lot in advance.
Requirement : Create a JCL, which reads multiple(count is not fixed) input files and concatenate them into an output file. Also while reading each input file it should check for empty file and if file is empty the step RC should be 12. Input file names should be REPx, x is the number here. Is this dynamic naming of files is possible ?
All the input files have same length of record in it, mentioned below.
JOB_NAME CHAR(8) POS(1); /*JOB NAME*/
FILLER1 CHAR(3) POS(9); /*FILLER*/
PR_DATE CHAR(16) POS(12); /*TIMESTAMP OF FILE PRINT*/
FILLER2 CHAR(3) POS(28); /*FILLER*/
PR_EMPTY CHAR(9) POS(31); /*FULLNESS FILE INDICATOR*/ |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
I tell you three times, and what I tell you three times is true: JCL cannot read and write data sets, or name them, or set condition codes. JCL can run programs that can do these things.
Now, how about a little Rexx exec using ISPF services that fabricates such a job (not "a JCL")? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
And did you mean "merge" when you say "concatenate" the files? What is hte source of "multiple files" - are the listed in some Data-set or...? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Unless we have some useful information like how are the input file names defined we can't really help you.
So are they themselves in a dataset or what.
Which program / utility will be used to achieve this.
Which sort product do you use and what release level is it.
As suggested above, are you proficient in REXX / ISPF to use those.
Are the input tapes on DASD or tape.
How big are the input files going to be. |
|
Back to top |
|
|
|