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
 
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 Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am

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