I had 100 records and i want to execute last three records by
using cobol programming?what will be coding?
Answer Posted / farid
In jcl we can do as follows.........
1st skip the 97 recordes and write rest 3 into another file
using sort utilities(with the help of jcl).now cobol program
can use the 2nd file which has only last 3 records
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
State the various causes of s0c1, s0c5 and s0c7.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
In which area will you utilize 88 level items in cobol?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What is length is cobol?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What the difference is between continue and next sentence?
How to know whether the module is dynamical or statistical?
) what is the difference between AID and HANDLE AID?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Name the sections present in data division.