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

How to assign values to a Packed Decimal filed via CA Easytr


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ragjeevan

New User


Joined: 06 Jun 2008
Posts: 5
Location: India

PostPosted: Sat Jun 14, 2008 8:01 pm
Reply with quote

I have file with a packed decimal field of (7 P 2) length.How can i assign values into this field via CA Easytrieve®?

eg i want to move the value 123.45 into this field.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Mon Jun 16, 2008 1:23 am
Reply with quote

Hello,

Quote:
i want to move the value 123.45 into this field.

This:
Code:

DEFINE PKDFLD W 7 P 2 VALUE 0
.
.
PKDFLD = 123.45       
DISPLAY PKDFLD       
STOP                 
gives 123.45
Back to top
View user's profile Send private message
ragjeevan

New User


Joined: 06 Jun 2008
Posts: 5
Location: India

PostPosted: Mon Jun 16, 2008 1:09 pm
Reply with quote

Thanks for the prompt response.
COuld you please confirm whether the above piece of code will work if the PKDFLD column is in the output file intead of working storage?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Mon Jun 16, 2008 7:16 pm
Reply with quote

Hello,

Yes, it should work in an output file as well.
Back to top
View user's profile Send private message
Deepthy Jose P

New User


Joined: 07 Mar 2007
Posts: 40
Location: India

PostPosted: Fri Jul 04, 2008 12:49 am
Reply with quote

Ragjeevan

Yes it works. I was able to assign value to a packed decimal filed in the output file.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Jul 04, 2008 12:52 am
Reply with quote

Good to hear it - thanks for letting us know your code is working icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts Help required to reset decimal points... DFSORT/ICETOOL 10
No new posts Unable to interpret a hex value to De... COBOL Programming 7
No new posts how to eliminate null indicator value... DB2 7
No new posts small int to zoned decimal conversion DFSORT/ICETOOL 3
Search our Forums:


Back to Top