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 LOW VALUES as a KEY juares castro DB2 10 Sat Apr 07, 2018 1:06 am
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts How to group and sum the decimal value sakrat DFSORT/ICETOOL 2 Tue Mar 06, 2018 9:13 pm
No new posts attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm

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