Can we move X(9) to 9(9). If yes what are the ways for
doing this?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ashish
Alphanumeric to numeric movement is possible but not always,
say if it has numeric value then only it is possible o/w if
it contains alphabetic value then it wont b possible
| Is This Answer Correct ? | 10 Yes | 4 No |
Answer / nidhi
The NUMVAL function returns the numeric value represented by the
alphanumeric character string specified in an argument. The function
strips away any leading or trailing blanks in the string, producing a
numeric value that can be used in an arithmetic expression.
| Is This Answer Correct ? | 1 Yes | 0 No |
There are two flat files one having 10 records and other having 5 records. write a cobol pgm to find the duplicate records(matching records)from both files.
If we use GO BACK instead of STOP RUN in cobol?
How arrays can be defined in COBOL?
At the minimum, which division of COBOL is enough to be coded?
what will happen if pass values more than 100 using PARM parameter?
Explain call by context by comparing it to other calls.
which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks
) How do u handle errors in BMS macro?
what is amode(24), amode(31), rmode(24) and rmode(any)?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
what is the coding difference between COBOL and CICS.
consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable