Suppose, file A has 100 records and file B has 500 records. We
want to write records common to both A and B into file C and
records which are present only in either A or B into another file D.
What should be the logic of Cobol program to achieve this?
Answer Posted / suresh
sort the file by using key...and perform matching logic
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
how to refer the data field?
What is rmode(24)
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Which mode is used to operate the sequential file?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is the difference between structured cobol programming and object alternativelyiented cobol?
what are decleratives in cobol?
IF I mention stop run in CICS what happens?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
How do you differentiate between cobol and cobol-ii?