Thanks for making such useful videos... Requesting you to make videoes regularly ...
@iiwowiis53545 жыл бұрын
Thanks for your comment Deepak Chandra. I will post the videos regularly.
@deepakchandra88655 жыл бұрын
Thanks!!!😊
@MrAkshay802 жыл бұрын
Can you share the jcl to compile the cobol program?
@iiwowiis53543 жыл бұрын
Let us assume the key values from both the input files are as follows: File1 File2 1 1 2 3 3 5 then the logic would be: Read file1 Read file2 1st time: 1 = 1 . matched record. read next record from File1 and File2 2nd time: 2 < 3 . Key value 2 is present only in File1 but not available in File2. so, record 2 from File1 is moved to the output file (Unmatched from File1) Read next record of File1 3rd time: 3 = 3 . matched record. read next record from File1 and File2 4th time: 3 < 5 . If File1-EOF = 'Y', move file2 to output file Move 5 to output file (Unmatched from File2)
@arunachalasiva57873 жыл бұрын
Could you elaborate on this by showing records matching with the logic and how it write to out file. Thanks in advance
@iiwowiis53543 жыл бұрын
Thanks for asking. I have updated the matching logic in the generic comment section.
@iiwowiis53543 жыл бұрын
COBOL Logic: PROCESS-PARA. IF WS-IEOF = 'N' OR WS-IEOF2 = 'N' IF File1 > File2 IF File2-EOF = 'N' Write File2 to Output file (Present only in File2) Read File2 ELSE MOVE FILE1 To output file (Present only in File1 ) Read File1 END-IF ELSE IF File1 < File2 IF File1-EOF = 'N' MOVE FILE1 to output file( Present only in File1) Read File1 ELSE MOVE FILE2 to output file(Present only in File2) Read File2 END-IF ELSE IF IEMPNO = IEMPNO2 MOVE FILE1 to output file (Matched record) Read File1 Read File2 END-READ
@muhafeezsayyed21753 жыл бұрын
Can you please teach me mainframe course
@kuruvamallesh44725 жыл бұрын
Hi Sir can you provide cobol code in comment section.
@iiwowiis53545 жыл бұрын
I have just updated the COBOL code in the description section.