MAINFRAME - TIP OF THE DAY :
When you use COUNT operator to set a return code
of 12 or 4 if a specified data set is EMPTY, NOTEMPTY, HIGHER(n), LOWER(n), EQUAL(n) or NOTEQUAL(n). where n is a specified number of records. If you use the RC4 operand, SORT sets RC=4; otherwise it sets RC=12.
COUNT FROM(IN) EMPTY
Programmers Voted for below topics. Please Vote for good Posts.
Thank You! for your feedback. Connecting to the server. Please Wait...
The extra record is 3rd one in TEST FILE.Iam saying so by manually checking the amount field.
The accounts are sorted with account number.
I want that to be written into separate file.
I have written normal file compare logic based on acct num.With this logic it is comparing first three records in both the files and writing the mismatches in Output file 1.It is considering the 4th record in TEST file as extra record and writing it to Output File 2, which is wrong.The 3rd record should be written to the output file2.
I have also tried to sort the trancode but have same trancode for extra record and original record.
Note: I have just given a example with acct num,Trancode,Amt fields.Originally my test and Prod files have 36 different fields.
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