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
How do we get current date from system with century in COBOL?
What is the difference between goback, stop run and exit program in cobol?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How to print 10 to 1 if the input have only 10 digit number?
What is length is cobol?
Write down the divisions of cobol program?
example for sub strings ? and refernce modifications whit output pls
how do you reference the rrds file formats from cobol programs
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
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.
Why occurs cannot be used in 01 level in COBOL?
What rules are followed by the search verb.
What is rmode(any) ?
What guidelines should be followed to write a structured cobol prgm?