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

moving a packed decimal to numeric in easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   This topic is locked: you cannot edit posts or make replies.
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
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: 1249
Location: Richfield, MN, USA

PostPosted: Thu Dec 04, 2008 10:49 am
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
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: 1249
Location: Richfield, MN, USA

PostPosted: Thu Dec 04, 2008 10:56 am
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. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
Search our Forums:

Back to Top