How to declare if emp-name = AAAAA""BBB in working-storage
section. After display emp-name should print like AAAAA""BB

Answers were Sorted based on User's Feedback



How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-na..

Answer / sukhwinder singh

IDENTIFICATION DIVISION.
PROGRAM-ID. M3TUD.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-VARS PIC X(10) VALUE 'AAAAA""BBB'.
PROCEDURE DIVISION.
0000-MAIN.
DISPLAY WS-VARS(1:9).
stop run.

Is This Answer Correct ?    11 Yes 0 No

How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-na..

Answer / 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

How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-na..

Answer / 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

How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-na..

Answer / jaanu

IDENTIFICATION DIVISION.
PROGRAM-ID. M3TUD.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-VARS PIC X(9) VALUE 'AAAAA""BBB'.
PROCEDURE DIVISION.
0000-MAIN.
DISPLAY WS-VARS.
stop run.

Is This Answer Correct ?    3 Yes 1 No

How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-na..

Answer / srivatsa

IDENTIFICATION DIVISION.
PROGRAM-ID. M3TUD.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-VARS PIC X(10) VALUE 'AAAAA""BBB'.
PROCEDURE DIVISION.
0000-MAIN.
DISPLAY WS-VARS(1:9).
stop run.

Is This Answer Correct ?    1 Yes 0 No

How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-na..

Answer / arun

IDENTIFICATION DIVISION.
PROGRAM-ID. M3TUD.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-VARS PIC X(10) VALUE 'AAAAA""BBB'.
PROCEDURE DIVISION.
0000-MAIN.
DISPLAY WS-VARS
.
SYSOUT
AAAAA""BBB

Is This Answer Correct ?    5 Yes 9 No

Post New Answer

More COBOL Interview Questions

can we use 77 level no for Redefines?if we use give an example?

3 Answers   Mphasis,


if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.

2 Answers   UST,


when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?

1 Answers   Hewitt,


What is the difference between performing a SECTION and a PARAGRAPH?

5 Answers   Accenture, Patni,


what is amode(24), amode(31), rmode(24) and rmode(any)?

0 Answers  






is this below syntax correct? CALL 'subprg' using A,B Please help

2 Answers  


77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A will be executed.?

9 Answers   TCS,


i am a btech cs 2009 passout. i am opting for mainframe course. is it good to do this course? pls. anyone suggest me

4 Answers  


How can you add a particular field/coloumn in copybook?

3 Answers   ADP, DELL, L&T,


what are decleratives in cobol?

0 Answers   GGG, Satyam,


What is XDC ?

3 Answers   Cap Gemini, IBM,


How to concatenation one or more string?

4 Answers   Temenos,


Categories