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 Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm
No new posts Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am


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