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
 

 

moving a packed decimal to numeric in easytrieve

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
hariharan4

New User


Joined: 06 Aug 2008
Posts: 22
Location: chennai

PostPosted: Thu Dec 04, 2008 10:45 am    Post subject: moving a packed decimal to numeric in easytrieve
Reply with quote

Hi
I need to move a packed decimal declared in easytrieve as 6 p 2.
I declared a numeric variable as 11 N 2. when i'm trying to move a -ve value in packed decimal to the above numeric item i'm getting junk value at the last byte..

please help in this regard
Back to top
View user's profile Send private message

Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1239
Location: Richfield, MN, USA

PostPosted: Thu Dec 04, 2008 10:49 am    Post subject:
Reply with quote

Did you use a MOVE statement or an ASSIGN statement? If a move, you might have better luck with assign. Easytrieve moves do not work the same way as COBOL moves. Try B = A instead of MOVE A TO B.
Back to top
View user's profile Send private message
hariharan4

New User


Joined: 06 Aug 2008
Posts: 22
Location: chennai

PostPosted: Thu Dec 04, 2008 10:53 am    Post subject: Reply to: moving a packed decimal to numeric in easytrieve
Reply with quote

I used the assignment operation to move using =
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1239
Location: Richfield, MN, USA

PostPosted: Thu Dec 04, 2008 10:56 am    Post subject:
Reply with quote

My Easytrieve is a bit rusty, but can you post your exact code using BBCode?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    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 Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts Moving a PD to PD spoorni DFSORT/ICETOOL 8 Fri Oct 07, 2016 9:52 pm
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm


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