Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
Location: East Dubuque, Illinois, USA

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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us