View previous topic :: View next topic
|
Author |
Message |
sangar_blr
New User
Joined: 01 Apr 2005 Posts: 8
|
|
|
|
if u check alphanumeric(X) values in is numeric clause condition what will happen?
for example
1) ws-data pic x(4) value "123".
IF ws-data is numeric
display "sangar"
else
display "gan".
what is the display value?
2) ws-data pic x(4) value "1234".
IF ws-data is numeric
display "sangar"
else
display "gan".
what is the display value? |
|
Back to top |
|
|
sivatechdrive
Active User
Joined: 17 Oct 2004 Posts: 191 Location: hyderabad
|
|
|
|
Hi Sangar
the IS numeric clause can be used with alphanumeric field
i suppose
the ist results in "gan". as 123 is passed & the last byte is padded with space
the 2nd result in "sangar"
thanks
siva |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
An A/N field will test positive for NUMERIC if it only contains the digits
0-9, that is, X'F0' thru X'F9'.
Any other values will result in a failed NUMERIC test. |
|
Back to top |
|
|
prasad_yadav20
New User
Joined: 12 Mar 2005 Posts: 13 Location: hyderabad
|
|
|
|
hi.
if i deleted dataset phisically in 1st step of one proc ,if i want to access same dataset which i am delete in 2nd step then what abend i will get? |
|
Back to top |
|
|
|