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
Name the sections present in data division.
) How do u handle errors in BMS macro?
what is search and searchall?what is the diffrence between them?give an best example?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
When is inspect verb is used in cobol?
What is the difference between PIC 9.99 and PIC9v99?
What is the compute verb? How is it used?
how to access the file from prodution from changeman tool and to submit a file to production
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
In which area will you utilize 88 level items in cobol?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the utilization of copybook in cobol?
What are literals?
How you can read the file from bottom?
In COBOL programming, what is PERFORM? What is VARYING?