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: 1746
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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