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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: How to assign values to a Packed Decimal filed via CA Easytr
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

Site Director


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

PostPosted: Mon Jun 16, 2008 1:23 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Jun 16, 2008 7:16 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Jul 04, 2008 12:52 am    Post subject: Reply to: How to assign values to a Packed Decimal filed via
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    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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts How can we have the varying lenth of ... Gunapala CN DFSORT/ICETOOL 6 Fri Oct 14, 2016 7:31 pm


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