How do you set a return code to the JCL from a COBOL
program?
Answer Posted / suresh . e
01 RETURN-CODE-OUT PIC S9(09) USAGE COMP.
01 RETURN-CODE-IND PIC S9(04) USAGE COMP. first
declaration is to define the variable for return
code.Second declaration is for defining a Null indicator.
| Is This Answer Correct ? | 0 Yes | 14 No |
Post New Answer View All Answers
Write some characteristics of cobol as means of business language.
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
what is search and searchall?what is the diffrence between them?give an best example?
Difference between cobol and cobol-ii?
What are declaratives and what are their uses in cobol?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is the difference between PIC 9.99 and PIC9v99?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is inspect in cobol ?
what are decleratives in cobol?