What will happen if a variable is declared as below..
Explain with an example? Working storage section:-
01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'.
01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'.
What will happen I am going to Display the WS-VARX and WS-
VARN?
Answer Posted / neela
Hi KHB Naidhu,
pic x means it should be alphanumeric
pic 9 means it should be Numeric
so we have to move numeric values also to the pic x
for this qtion is correct what was explained my
mallikarjuna.
regards
Neela
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
what happens if parmparameter passes zero bytes to the program
What type of SDLC u followed? Why?
Can we redefine the field of x(200) to less than 200?
What is amode(24)?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
How do you reference the fixed block file formats from cobol programs
Can a Search can be done on a table with or without Index?
What is the problem of ordered sequential files access?
example for sub strings ? and refernce modifications whit output pls
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
how to convert the recors form vsam file to db2 table tru file aid
What is the use of intialize verb?
Which division and paragraphs are mandatory for a COBOL program?