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 write the edited numeric values in output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Prem.y

New User


Joined: 09 Feb 2011
Posts: 7
Location: Hyderabad

PostPosted: Tue Apr 19, 2011 8:51 pm    Post subject: How to write the edited numeric values in output file
Reply with quote

Hi

I have a easytrieve program with input numeric field declared as folows:

Code:

INFIL-CHK-HELD-AMOUNT                              212      7 N   0


and I declared the output field as follows

Code:

OUTFL-CHK-HELD-AMOUNT                              293     13 N 2 +
                 MASK ('99999999999.99-')


I am moving the input field to output field as follows:

Code:

OUTFL-CHK-HELD-AMOUNT          =   INFIL-CHK-HELD-AMOUNT


I want the output value to be populated as 00000012345.67- where as in input it is 1234567, but the value I am getting into output as 0000001234567 even if am using the MASK.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 19, 2011 8:56 pm    Post subject:
Reply with quote

Unfortunately today is NOT psychic day, and therefor we can not know which product we are attempting to discuss, so how on earth do you possibly expect any help
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7308

PostPosted: Sun Mar 17, 2013 6:35 am    Post subject: Reply to: How to write the edited numeric values in output f
Reply with quote

An example PRINTER EXIT is now here.

This will allow you to use a MASK to edit a field, and then put that field on an output file.
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm


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