View previous topic :: View next topic
|
Author |
Message |
rinkubhat
New User
Joined: 13 Sep 2005 Posts: 35 Location: India
|
|
|
|
Shouldnt a program abend If I have defined a field name as PIC 9(2) in program and in the file i have alphabetic field in this particular place |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
No, it shouldn't. |
|
Back to top |
|
|
rinkubhat
New User
Joined: 13 Sep 2005 Posts: 35 Location: India
|
|
|
|
Why? |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
As long as it is just stored there, nothing will happen.
If it's part of a record you've read, for example, you can write it back, it will work.
Problems will start if you try to directly access the invalid data.
Some commands [executed on the invalid value] will generate an abend, and some will not.
It depends on the command itself and the value(s) in storage. |
|
Back to top |
|
|
calspach
New User
Joined: 05 May 2006 Posts: 32 Location: USA
|
|
|
|
Yep, you can define your entire record as pic 9(80) or something and read it, move it to a different record, whatever you want. As long as you don't try some type of arithmetic on it, or I think try to display it, it will be fine. It's not the move that will make it abend, it's referencing the data that will become a problem. |
|
Back to top |
|
|
|