Can we MOVE X(9) to 9(9) OR 9(9) to X(9)? If yes what are
the ways for doing this?
Answer Posted / varun v
yes you can..use REDEFINES for the same purpose.
Move X(9) to 9(9):-
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.
Similarly viceversa..
Is This Answer Correct ? | 18 Yes | 12 No |
Post New Answer View All Answers
Discuss about changing dataset name in proc.
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
how do you reference the ksds vsam file formats from cobol programs
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What are the different open modes available in cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What are the pertinent COBOL commands?
HOw can I get the negative sign while deduct high value from low value
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?