MAINFRAME - TIP OF THE DAY :
When you specified V for RECFM parameter, LRECL value is largest record in the file plus 4 bytes. These four bytes contain the actual length of each variable length record in the file
Programmers Voted for below topics. Please Vote for good Posts.
Thank You! for your feedback. Connecting to the server. Please Wait...
The color coding is not for the sort but for the members for better understanding of the problem in hand.
Just to rephrase my question -
Can the sort remove duplicate on the (HDR-DTL) block level instead of individual record ?
Note: 'HDR' denotes the beginning of the block and that block continues as 'DTL' till the next HDR (or end of file) is encountered.
To answer your question - how is sort supposed to know if it was duplicate ?
Sort needs to accumulate the record as block and then compare with every block to see if it had any match. If the match is positive, don't write the block to the output.
If there is nothing to distinguish one group of records from another, then every group in the file has to be compare to every other group in the file. Can you show better examples of the data? Needs a key to be able to work.
Posted: Mon Jan 25, 2016 4:24 pm Post subject: Reply
Hi William Collins, I have not replied this thread for making it Spam. I am not in the need to do this. I have heard many thing about Forums. So y i joined. _________________ marriage catering services in chennai
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
Cobol Tutorial This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial This Tutorial covers all important aspects of DFSORT. Has more SORT examples