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 Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am


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