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 the difference between binary search and sequential search?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
How do we get current date from system with century in COBOL?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Which mode is used to operate the sequential file?
Are you comfortable in cobol or jcl?
How do you get the data to code the BMS macro?
How to remove 2 duplicate records and copy only one using job control language?
How do you reference the fixed block file formats from cobol programs
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
) How do u handle errors in BMS macro?
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
what is difference between cobol and cobol/400
Write a program to explain size error.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.