IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Alphanimeric value in Pic 9(2)


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rinkubhat

New User


Joined: 13 Sep 2005
Posts: 35
Location: India

PostPosted: Wed May 31, 2006 5:18 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed May 31, 2006 5:34 pm
Reply with quote

No, it shouldn't.
Back to top
View user's profile Send private message
rinkubhat

New User


Joined: 13 Sep 2005
Posts: 35
Location: India

PostPosted: Thu Jun 01, 2006 10:19 am
Reply with quote

Why?
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Jun 01, 2006 1:31 pm
Reply with quote

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
View user's profile Send private message
calspach

New User


Joined: 05 May 2006
Posts: 32
Location: USA

PostPosted: Sat Jun 03, 2006 3:22 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Search our Forums:

Back to Top