Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Alphanimeric value in Pic 9(2)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Alphanimeric value in Pic 9(2)
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

Moderator Team Head


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

PostPosted: Wed May 31, 2006 5:34 pm    Post subject: Re: Pic 9
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    Post subject: Re: Alphanimeric value in Pic 9(2)
Reply with quote

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

REXX Moderator


Joined: 13 Mar 2006
Posts: 1232
Location: Israel

PostPosted: Thu Jun 01, 2006 1:31 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:



Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us