View previous topic :: View next topic
|
Author |
Message |
purushottam
New User
Joined: 26 Feb 2007 Posts: 37 Location: pune
|
|
|
|
I am getting different behavior of a variable in different region.
All I am doing is moving below
#PHONE := '123-456-78'
#CHECK-PHONE := #PHONE-N
where definition is like
#PHONE-N =>>>
01 #PHONE (A10)
01 REDEFINE #PHONE
02 #PHONE-N (N10)
#CHECK-PHONE ==>>
01 #CHECK-FIELDS (A37)
01 REDEFINE #CHECK-FIELDS
02 #CHECK-PHONE (N10)
02 REDEFINE #CHECK-PHONE
03 #CHECK-A (A6)
03 REDEFINE #CHECK-A
04 #CHECK-A1 (N3)
04 #CHECK-A2 (N3)
03 #CHECK-STATION (A4)
02 #CHECK-ST (A2)
02 #CHECK-ZIP (A9)
02 #CHECK-DATE (A8)
After MOVE statement , while checking the value of field #CHECK-PHONE. I am getting different result in different region as
In PRODUCTION :- Field #CHECK-PHONE shows "Variable contains invalid data."
In DEVL Or TEST region :- Field #CHECK-PHONE shows value as "1230456078" means "-" are getting converted to zeroes.
I am checking this values by debugging option.
Can any one help me also please let me know which is the correct as per NATURAL standards. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Try MOVE EDITED.
O. |
|
Back to top |
|
|
purushottam
New User
Joined: 26 Feb 2007 Posts: 37 Location: pune
|
|
|
|
Thanks for your reply, But I am here to find Root cause for this Means why it is not behaving same.
Also, which is the correct way, how should code work ?? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Again, moving alphanumeric data into numeric variable - this is the reason why the smart Software AG guys invented MOVE EDITED!!!
O. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
That tells how to make it work. . .
Why does it act differently in different regions? Some environment specific option definition? Some ptf applied to one and not the other?
What other features/functions might behave differently?
Was there an upgrade done so that the environments are not running the same level of Natural? |
|
Back to top |
|
|
purushottam
New User
Joined: 26 Feb 2007 Posts: 37 Location: pune
|
|
|
|
Yes, Recently Nataural has been upgrated from 4.2.03 to 4.2.04.
I checked we are using V/R SM 4.2 4 on both regions.
I am not sure what is ptf ?? I did not found any setting command inside the code.
Till date we did not found any other discrepancy.
Please keep me posted if you need any other information.[/img] |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I am not sure what is ptf ?? |
Long ago it stood for "program temporary fix". It was the vehicle software vendors used to release fixes/enhancements between product releases.
In your case, it sounds like something in the code has been "tightened" or some configuration setting has been set differently requiring the change to your code. |
|
Back to top |
|
|
purushottam
New User
Joined: 26 Feb 2007 Posts: 37 Location: pune
|
|
|
|
Thanks All,
It is a NATURAL environment issue. as a temporary fix i have updated my code accordingly. |
|
Back to top |
|
|
|