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
 

 

Concatenation of multiple files with different record length

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
mahesh83

New User


Joined: 29 Jan 2008
Posts: 14
Location: Bangalore

PostPosted: Mon Dec 07, 2009 6:20 pm    Post subject: Concatenation of multiple files with different record length
Reply with quote

Concatenation of multiple files with different record length and to arrive in a single output file
Problem description

File 1 : LRECL - 210
Emp no: ,Dept : ,Marks:

File 2 : LRECL - 212
Emp no: , Dept : ,Marks:

File 3 : LRECL - 215
Emp no: , Dept : ,Marks:

File 4 : LRECL - 225
Emp no: ,Dept : ,Marks:

Output file : Extract having only selected fields Emp no: ,Dept : ,Marks: from all the above files1,2,3&4 .
Emp no: ,Dept : ,Marks: Field length is same in all the fields.
Back to top
View user's profile Send private message

mahesh83

New User


Joined: 29 Jan 2008
Posts: 14
Location: Bangalore

PostPosted: Mon Dec 07, 2009 6:21 pm    Post subject: Reply to: Concatenation of multiple files with different rec
Reply with quote

Please suggest us the best way to proceed with this ??..
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Mon Dec 07, 2009 6:22 pm    Post subject:
Reply with quote

Are these FIXED length records or VARIABLE length records? This is a key, vital piece of information that you neglected to provide.
Back to top
View user's profile Send private message
mahesh83

New User


Joined: 29 Jan 2008
Posts: 14
Location: Bangalore

PostPosted: Mon Dec 07, 2009 6:27 pm    Post subject:
Reply with quote

Sorry ..Missed it..
All the files are Fixed Length
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: Mon Dec 07, 2009 6:34 pm    Post subject:
Reply with quote

Because the solution for sort related questions may vary from product to product, please ensure that you state clearly which sort product you are using.

If you are not sure, then by running a simple sort step shown below, you will be able to find out for yourself.

If the messages start with ICE then your product is DFSORT. Please also post the output of the complete line which has a message code ICE201I, as this will enable our DFSORT experts to determine which release of DFSORT that you have installed. This may also affect the solution offered.

If the messages start with WER or SYT then the product is SYNCSORT and should be posted in the JCL forum. Please also post the information telling which version of SYNCSORT is installed, as this may also affect the solution offered.

Thank you for taking your time to ensure that the valuable time of others is not wasted by offering inappropriate solutions which are not relevant due to the sort product being used and/or the release that is installed in you site.

Code:
//SORTSTEP EXEC PGM=SORT
//SYSOUT   DD SYSOUT=*
//SORTIN   DD *
ABC
//SORTOUT  DD SYSOUT=*
//SYSIN    DD *
  SORT     FIELDS=COPY


You also need to provide the key positions, lengths and formats for all of the input files.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Mon Dec 07, 2009 6:38 pm    Post subject:
Reply with quote

mahesh83 wrote:
All the files are Fixed Length
I believe you wanted to say RECFM=FB.

Here are earlier threads on similar requests, please learn to search the forusm:

http://www.ibmmainframes.com/about38923.html
http://www.ibmmainframes.com/about44260.html
Back to top
View user's profile Send private message
mahesh83

New User


Joined: 29 Jan 2008
Posts: 14
Location: Bangalore

PostPosted: Mon Dec 07, 2009 6:43 pm    Post subject:
Reply with quote

Thank you so much expat..
Our sort product is Syncsort.
SYNCSORT FOR Z/OS 1.2.3.1R
As you stated i will post my question in JCL forum ..
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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm


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