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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different rules of SORT operation?

699


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

421


How do you differentiate between cobol and cobol-ii?

656


What is length is cobol?

650


What are the cobol coding sheets?

664






Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

825


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

717


Which division and paragraphs are mandatory for a COBOL program?

709


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

710


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10617


how can i see junk values in dclgen or in hostvariable of comp ?

2544


Are you comfortable in cobol or jcl?

643


Difference between cobol and cobol-ii?

707


What are 77 levels used for?

659


example for sub strings ? and refernce modifications whit output pls

1846