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
 

 

Adding Packed decimal values using ICETOOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Wed Nov 01, 2006 3:08 pm    Post subject: Adding Packed decimal values using ICETOOL
Reply with quote

Hi,

I Have a flat file.

I Have to add a packed decimal value to a particlular field present in the flat file.

eg:-

Input file(LRECL:80 bytes)
Name Salary
-----------------------------
Xavier 100
Peter 200
Albert 10000

I Have to add 200 to all the Salary values present in the Input file.

Note:-

The Salary field and the Value to be added(200) both are packed decimals.

Is it possible to achieve this in a single stel using a ICETOOL.

Expecting eagerly for your help..

Regards
Muthu
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Nov 01, 2006 9:32 pm    Post subject:
Reply with quote

You don't really need ICETOOL to do this, as you can do it with a simple DFSORT COPY step, but you can use a DFSORT/ICETOOL COPY instead if you want to. Let's assume your PD field is in positions 11-15. Then you could use this DFSORT INREC statement to add +200 to that field:

Code:

   INREC OVERLAY=(11:11,5,PD,ADD,+200,TO=PD,LENGTH=5)


Just change the control statement appropriately for the actual starting position and length of the PD field.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am


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