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
 

 

Sorting three files based on some conditions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
KMV

New User


Joined: 15 May 2007
Posts: 22
Location: Coimbatore

PostPosted: Mon Sep 08, 2008 7:11 pm    Post subject: Sorting three files based on some conditions
Reply with quote

Hi,
I have three files in the following format:
header denoted by 01
data denoted by 02
trailer denoted by 03

I need to concatenate all the three files and give a sequence number inorder to check the count of records in particular file, and finally sort it so that i get the file in following format.

trailer of file1
header of file1
data of file1
trail of file2
header of file2
data of file2
trailer of file3
header of file3
data of file3
Back to top
View user's profile Send private message

Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Sep 08, 2008 8:58 pm    Post subject:
Reply with quote

Quote:
I need to concatenate all the three files and give a sequence number inorder to check the count of records in particular file, and finally sort it so that i get the file in following format.


KMV,

You need to provide more details. What is the LRECL and RECFM of the 3 files? How do you validate the count? Is it matching with the count on the trailer record from each file?
Back to top
View user's profile Send private message
KMV

New User


Joined: 15 May 2007
Posts: 22
Location: Coimbatore

PostPosted: Tue Sep 09, 2008 9:33 am    Post subject: Reply to: Sorting three files based on some conditions
Reply with quote

Hi Skolusu,

Thanx for ur reply.

Input files will be having a lrecl of 359 and recfm is FB.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Tue Sep 09, 2008 9:45 pm    Post subject:
Reply with quote

KMV,

Please answer all the questions I asked

Thanks
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm


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