How to declare if emp-name = AAAAA""BBB in working-storage
section. After display emp-name should print like AAAAA""BB
Answer Posted / premil
IDENTIFICATION DIVISION.
PROGRAM-ID. M3TUD.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-VARS PIC X(10) VALUE 'AAAAA""BBB'.
01 WS-VAR1 PIC X(9).
PROCEDURE DIVISION.
0000-MAIN.
MOVE WS-VARS TO WS-VAR1.
DISPLAY WS-VAR1.
stop run.
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
What are the various section in data division and briefly explain them.
What is the Purpose of Pointer in the string?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
explain sorting techniques in cobol program?
How do u write test cases?
What is redefines clause in COBOL?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How do you reference the fixed block file formats from cobol programs
What are the pertinent COBOL commands?
What is the LINKAGE SECTION used in COBOL?
What are literals?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
For rewrite, why is it mandatory that file needs to be opened?
What is comp-1 and comp-2?
A table has two indexes defined. Which one will be used by the SEARCH?