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


Please Help Members By Posting Answers For Below Questions

How you can characterize tables in cobol?

723


How do you reference the fixed block file formats from cobol programs

710


How arrays can be defined in COBOL?

668


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2734


What are 77 levels used for?

661






i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

897


Write some characteristics of cobol as means of business language.

623


In COBOL, what is the different between index and subscript?

763


i want a program using by if, evaluate , string, unstring, perform, occurs?

4067


What is the difference between a binary search and a sequential search what are the pertinent cobol?

737


What is inspect in cobol ?

806


In COBOL programming, what is PERFORM? What is VARYING?

674


HOw can I get the negative sign while deduct high value from low value

1797


What are the different open modes available in cobol?

722


What are the different rules for performing sort operation?

766