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

Which mode is used to operate the sequential file?

658


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17024


how do you reference the ksds vsam file formats from cobol programs

649


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

699


What are the different open modes available in cobol?

713






i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1761


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1605


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1796


Write some characteristics of cobol as means of business language.

611


How can you get the ksds file records into your cobol program?

636


What type of SDLC u followed? Why?

1514


how do you reference the esds vsam file formats from cobol programs

625


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

408


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

639


Explain the configuration section of a cobol program with examples of syntax.

650