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
Can you please let me know the centre name of INS certification in Kolkata.
Explain how you can characterize tables in cobol?
Explain how to differentiate call by context by comparing it to other calls?
how to move the records from file to array table. give with code example
how do you reference the fixed unblock file formats from cobol programs
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is the difference between goback, stop run and exit program in cobol?
How do we get current date from system with century in COBOL?
A table has two indexes defined. Which one will be used by the SEARCH?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What are the pertinent COBOL commands?
How do you define a variable of comp-1 and comp-2?
Why occurs cannot be used in 01 level in COBOL?
What is Pic 9v99 Indicates in COBOL?