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

Creation of a consolidated file for several input files.


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

New User


Joined: 04 Nov 2010
Posts: 9
Location: bangalore

PostPosted: Tue Nov 29, 2011 11:46 pm
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


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

PostPosted: Tue Nov 29, 2011 11:59 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Nov 30, 2011 1:24 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Nov 30, 2011 1:25 pm
Reply with quote

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
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top