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

Concatenation of multiple files with different record length


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Dec 07, 2009 6:22 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Mon Dec 07, 2009 6:34 pm
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

Superior Member


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

PostPosted: Mon Dec 07, 2009 6:38 pm
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:

www.ibmmainframes.com/about38923.html
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top