View previous topic :: View next topic |
Author |
Message |
batu544 Beginner
Joined: 02 Aug 2005 Posts: 75 Topics: 27
|
Posted: Fri Apr 25, 2008 12:00 am Post subject: Sort or COBOL is good ? |
|
|
Hi All,
I have a requirement like bellow, I can do it in COBOL but just want to know whether its possible by using DFSORT or SYNCSORT.
I have 3 input files and all the files have header/trailer record.
1. If the header record doesn't contain 99 in 15-16th position and 00 in 18-19th position then reject the file.
2. Trailer record contains total count of records ( 10-11th position) along with some other fields. If the count doesn't match with the actual record counts then also reject the file.
Is it possible thru sort ?
Code: |
HDRXXXXXxxxxxx99x00xxxxxx
detail line1
detail line 2
detail line 3
xxxxxxxxx05batu544xyz
|
Like this three files with different detail lines.
Hope I have explained clearly  _________________ Regards,
batu |
|
Back to top |
|
 |
Frank Yaeger Sort Forum Moderator

Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Fri Apr 25, 2008 10:13 am Post subject: |
|
|
What exactly do you mean by "reject the file"? It would help if you'd show examples of input and expected output for various cases. What is the RECFM and LRECL of the input file? _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|
Back to top |
|
 |
|
|