MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sort or COBOL is good ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
batu544
Beginner


Joined: 02 Aug 2005
Posts: 75
Topics: 27

PostPosted: Fri Apr 25, 2008 12:00 am    Post subject: Sort or COBOL is good ? Reply with quote

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 Smile
_________________
Regards,
batu
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Apr 25, 2008 10:13 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group