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


Please Help Members By Posting Answers For Below Questions

What is difference between static and dynamic call in cobol?

777


What is rmode(any) ?

686


Write a program to enter and display the names of students in a class using the occurs clause.

654


) what is the difference between AID and HANDLE AID?

1637


What is an in line perform? When would you use it? Anything else you wish to say about it.

645






What is the Purpose of Pointer in the string?

643


What are the pertinent COBOL

2045


What is the use of intialize verb?

750


What are the different rules for performing sort operation?

763


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1588


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

744


What are the various section in data division and briefly explain them.

699


What are the different data types in cobol?

797


What is inspect in cobol ?

803


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5693