Can we move X(9) to 9(9). If yes what are the ways for
doing this?
Answer Posted / varun v
yes you can..use REDEFINES for the same purpose.
Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).
Now you can move X(9) variable to WS-VARX.Eventually it is
moved to the 9(9) variable WS-VARN.
Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
What is inspect in cobol ?
What are the access modes of START statement?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What are the different open modes available in cobol?
What guidelines should be followed to write a structured cobol prgm?
What are the pertinent COBOL
What are the different types of condition in cobol and write their forms.
how do you reference the printer file formats from cobol programs
What is the problem of ordered sequential files access?
What is the Purpose of Pointer in the string?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How to remove 2 duplicate records and copy only one using job control language?
Difference between cobol and cobol-ii?
What are declaratives and what are their uses in cobol?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic