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
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What guidelines should be followed to write a structured cobol prgm?
how do you reference the esds vsam file formats from cobol programs
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Can a Search can be done on a table with or without Index?
HOw can I get the negative sign while deduct high value from low value
What is a scope terminator give example?
What are the various section in data division and briefly explain them.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How do you define a variable of comp-1 and comp-2?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
When is inspect verb is used in cobol?
What is the LINKAGE SECTION used in COBOL?
what is the use of outrecord?