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
 

 

Packed Decimal Variable Declaration in Easytrieve

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

New User


Joined: 05 Oct 2005
Posts: 94

PostPosted: Wed Dec 14, 2005 10:28 am    Post subject: Packed Decimal Variable Declaration in Easytrieve
Reply with quote

Hi,

Variable declared in the pgm is
W-COUNT-4A W 10 P 0
I am retrieving a
Quote:
Numeric
value into this variable from the database in the Program.
The problem is when I am Moving the value in W-COUNT-4A to another numeric variable I observed a comma is getting moved along.
Eg ...If the value of W-COUNT-4A is 10555.
the value getting moved is 10,555.which is resulting in an abend whle used for addition purpose.
But the same problem can be avoided thru assigning the values
like ..VarB := W-COUNT-4A.
Pls inform me why this difference is arising.

Thanks,
Nikhil .S.
Back to top
View user's profile Send private message

jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Wed Dec 14, 2005 5:51 pm    Post subject:
Reply with quote

When moving numeric data in Easytrieve use an assign insttead of a move example:
W-COUNT-4B = W-COUNT-4A
Back to top
View user's profile Send private message
nikyojin

New User


Joined: 05 Oct 2005
Posts: 94

PostPosted: Fri Dec 16, 2005 3:02 pm    Post subject: Re: Packed Decimal Variable Declaration in Easytrieve
Reply with quote

Thanks jon_s_rice
I know yhis is how we tacle the problem.But why is this problem taking place while moving...
Back to top
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Fri Dec 16, 2005 4:59 pm    Post subject:
Reply with quote

A move i easytrieve is a straight move without conversion. I had not encountered this particular probplem since I do an assign in this situation.
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 Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts OPC JCL Variable passion_sujesh IBM Tools 5 Fri Jul 01, 2016 4:21 am


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