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

Sorting three files based on some conditions


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts How to load to DB2 with column level ... DB2 6
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
Search our Forums:

Back to Top