View previous topic :: View next topic
|
Author |
Message |
mahesh83
New User
Joined: 29 Jan 2008 Posts: 14 Location: Bangalore
|
|
|
|
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 |
|
|
mahesh83
New User
Joined: 29 Jan 2008 Posts: 14 Location: Bangalore
|
|
|
|
Please suggest us the best way to proceed with this ??.. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
mahesh83
New User
Joined: 29 Jan 2008 Posts: 14 Location: Bangalore
|
|
|
|
Sorry ..Missed it..
All the files are Fixed Length |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
mahesh83
New User
Joined: 29 Jan 2008 Posts: 14 Location: Bangalore
|
|
|
|
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 |
|
|
|