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 |
What is the difference between CONTINUE & NEXT SENTENCE ?
What are the differences between COBOL and COBOL II?
i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?
Have you code any new programs in COBOL ? What is the functionality of the programs?
How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB
how we separate the cobol cics statements from cobol&cics programming?
Syntax for JCLLIB & JOBLIB???
why we are using picture clause in the cobol programs?
diffrence between z(2) and z9(2)
I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?
In an EVALUTE statement is the order of the WHEN clauses significant?
is it possible to pass an SQL query inside a jcl which is inside a cobol program?