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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bytes S(8) comp field occupy and its maximum value?

1632


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1783


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

1588


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3720


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645






how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1655


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

857


how do you reference the printer file formats from cobol programs

665


How do you differentiate between cobol and cobol-ii?

656


IF I mention stop run in CICS what happens?

1896


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

945


) how do u code after getting data?

1580


What are the pertinent COBOL commands?

2626


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

998


explain sorting techniques in cobol program?

690