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
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Whats the difference between search & search ALL?
Mention the guidelines to write a structured cobol program?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
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?
Difference between array and sub-script ?
how do you reference the variable block file formats from cobol programs
how do you define single dimensional array and multidimensional array in your cobol?
How to print 10 to 1 if the input have only 10 digit number?
Write some characteristics of cobol as means of business language.
What is the difference between PIC 9.99 and PIC9v99?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How arrays can be defined in COBOL?
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.