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
 
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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Sorting on text - but in non-alphabet... Roy Ware SYNCSORT 5 Wed Aug 23, 2017 9:15 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

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