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

Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

676


Whats the difference between search & search ALL?

5264


Mention the guidelines to write a structured cobol program?

620


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

1588


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1230






Difference between array and sub-script ?

1167


how do you reference the variable block file formats from cobol programs

687


how do you define single dimensional array and multidimensional array in your cobol?

677


How to print 10 to 1 if the input have only 10 digit number?

811


Write some characteristics of cobol as means of business language.

619


What is the difference between PIC 9.99 and PIC9v99?

781


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

644


How arrays can be defined in COBOL?

663


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