sankarcpp1
New User
Joined: 30 Oct 2005 Posts: 5 Location: India
|
|
|
|
Hi,
My requirement is to create a report using ICETOOL. Report has field called Share quantity as data type as PD which I need to convert into display format using ICETOOL as explained below.
For example,
If the share quantity in the input file is 9481000 then the output should be 94.81000. Can we achieve this using ICETOOL?
I have attached the JCL which I have used and the output which I have got using that JCL.
Thanks,
Sankar.
Mod Note: Attachment removed due to copyright complaints - Attached document has TCS Confidetial at footer |
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
sankarcpp1,
Assuming that your input PD field is at pos 20 for 6 bytes and you want the edited result at pos 30 , the following control cards will give you the desired results
Code: |
//SYSIN DD *
SORT FIELDS=COPY
OUTREC OVERLAY=(30:(+100000,MUL,20,6,PD),DIV,+100000,
EDIT=(IIIIT.TTTTT))
/* |
|
|