View previous topic :: View next topic
|
Author |
Message |
karthik3883
New User
Joined: 19 Oct 2007 Posts: 37 Location: chennai
|
|
|
|
Hi,
I have one query is it possible to move from x(4) to 9(4).
Regards
Karthik |
|
Back to top |
|
|
rajaherein
New User
Joined: 11 Jan 2007 Posts: 23 Location: chennai
|
|
|
|
Karthik,
Its been discussed lot of times, please search the forum for the answers. |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Hi Karthik,
You would be getting a S0C7 abend if you try to move a X(4) variable into a 9(4) varaible. However for the other way round, you won't get any error.
Please do check the forums in a proper way before you post a similar question. |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
swapnadeep.ganguly:
What if the x(4) = 1234 and you try to move that to the 9(4)? SOC7? |
|
Back to top |
|
|
rag swain
New User
Joined: 17 Dec 2007 Posts: 33 Location: pune,INDIA
|
|
|
|
Its always better to go for numeric test before such move(if it is numeric go for the move otherwise do other processing to prevent any abort). The other way round is to use NUMVAL or NUMVALC fucntion. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
You would be getting a S0C7 abend if you try to move a X(4) variable into a 9(4) varaible. |
As mentioned by Steve - not necessarily
I'd also suggest you pay attention to what "rag swain" posted. |
|
Back to top |
|
|
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 165 Location: Bangalore
|
|
|
|
hello,
you can always use the functions like NUMVAL, IS NUMERIC etc.
however, if you want to move the data without any check, you wont get any error while moving. if you try to perform some operation on those data then you may result into a S0C7 abend in case of invalid data. |
|
Back to top |
|
|
|