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 |
I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?
What is the LINKAGE SECTION used for?
How to print 10 to 1 if the input have only 10 digit number?
can I copy book which contain db2 statment in procedure divion?
i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.
How many bytes S(8) comp field occupy and its maximum value?
input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.
tell me about examine inspect and evaluate ?
if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible
How can we increase the size of an existing PDS to include more no. of modules. I tried the answer posted by Jagan(TSO PDS 'pds name') but did not find it working. The answer posted by kamal i know very well. Please suggest me a answer so that we don't need to delete the existing PDS and still we can change the size as well.
How to concatenation one or more string?
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?