Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Creation of a consolidated file for several input files.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Creation of a consolidated file for several input files.
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: 1754
Location: Bloomington, IL

PostPosted: Tue Nov 29, 2011 11:59 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Nov 30, 2011 1:24 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Nov 30, 2011 1:25 pm    Post subject:
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    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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us