Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1249
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: 1249
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 Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts How to group and sum the decimal value sakrat DFSORT/ICETOOL 2 Tue Mar 06, 2018 9:13 pm
No new posts Easytrieve with SQL Jan Olav Pedersen CA Products 1 Tue Jan 23, 2018 7:29 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us