How to declare if emp-name = AAAAA""BBB in working-storage
section. After display emp-name should print like AAAAA""BB
Answer Posted / reena
IDENTIFICATION DIVISION.
PROGRAM-ID.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 VAR1 PIC X(10) VALUE 'AAAAA""BBB'.
01 VAR2 REDEFINES VAR1 PIC X(9).
PROCEDURE DIVISION.
0000-MAIN.
DISPLAY VAR2.
STOP RUN.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What are 77 levels used for?
How to print 10 to 1 if the input have only 10 digit number?
What is the problem of ordered sequential files access?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How you can read the file from bottom?
What is the LINKAGE SECTION used in COBOL?
Explain about different table spaces.
how to access the file from prodution from changeman tool and to submit a file to production
what is the difference between COBOL2 AND COBOL390?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Name the sections present in data division.
What is the default value(s) for an initialize and what keyword allows for an override of the default?
how do you reference the fixed unblock file formats from cobol programs
Name some of the examples of COBOl 11?