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
 

 

Easytrieve Problem with Numeric Field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
melmania

New User


Joined: 22 Sep 2006
Posts: 4
Location: Phoenix, AZ

PostPosted: Fri Sep 22, 2006 8:55 pm    Post subject: Easytrieve Problem with Numeric Field
Reply with quote

I have a file that contains a 2-byte field which I defined as 'N'. In the file the field has a hex value of x'F5C2'. My program does a check to determine if the field is numeric (some of the records contain spaces). This record fails the numeric check and is not added to the total. Does anyone know how to handle this? icon_question.gif
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Tue Sep 26, 2006 12:45 pm    Post subject:
Reply with quote

Hi melmania,

Just try to defined as

ws-var 2 P
then try to add it. I hope it should work.

Just try it & let us know the result
Back to top
View user's profile Send private message
melmania

New User


Joined: 22 Sep 2006
Posts: 4
Location: Phoenix, AZ

PostPosted: Tue Sep 26, 2006 8:48 pm    Post subject: Re: Easytrieve Problem
Reply with quote

Ekta,

Thanks for your suggestion. As I expected, it did not work. If the field was a packed field it should be x'052C', not x'F5C2'. I tried several statements, add, move... but all with the same result: Code 7 (Data Excp).
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Tue Sep 26, 2006 9:15 pm    Post subject:
Reply with quote

HI melmania,

Just try to defined as

ws-var 2 b
then try to add it. I hope it should work.

Just try it & let us know the result
Back to top
View user's profile Send private message
melmania

New User


Joined: 22 Sep 2006
Posts: 4
Location: Phoenix, AZ

PostPosted: Tue Sep 26, 2006 9:42 pm    Post subject: Easytrieve Problem with Numeric Field
Reply with quote

I took out the numeric check and Easytrieve added the value correctly. However, it fails the numeric check. Interesting.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Sep 27, 2006 10:32 am    Post subject:
Reply with quote

Thats great
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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