Answer Posted / rahul
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT file-name ASSIGN TO dd-name.
FILE STATUS IS ws-file-status1.
ws-file-status1 need to define in WORKING STORAGE SECTION
with
PIC X(02)- For QSAM files
PIC X(03) for VSAM files.
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
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
how to refer the data field?
how to move the records from file to array table. give with code example
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What is amode(31)
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.
how can i see junk values in dclgen or in hostvariable of comp ?
What do you understand by psb and acb?
Can you please let me know the centre name of INS certification in Kolkata.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the usage of comp fields in cobol?
What is an in line perform? When would you use it? Anything else you wish to say about it.