01 a pic 9(3) value is 123
01 b pic 9(6)
move a to b
wht will be the value ? and
01 a pic x(6) value is abc
01 b pic x(3)
move a to b
wht will be the value ?
Answer Posted / arthi
1.
000123
2.
abc
Ravi, I guess you didnt mean the '-' as a minus sign in front of 000123, and abc. your answer is not clear enough.
Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
How many sections are there in data division in COBOL?
What is the difference between PIC 9.99 and PIC9v99?
What is the use of intialize verb?
Give some examples of command terminators?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the difference between external and global variables in COBOL?
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?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is comp-1 and comp-2?
Can you please let me know the centre name of INS certification in Kolkata.
how to refer the data field?
How do you get the data to code the BMS macro?
how do you reference the fixed unblock file formats from cobol programs
How are the next sentence and continue different from each other?