IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to write the edited numeric values in output file


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Apr 19, 2011 8:56 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sun Mar 17, 2013 6:35 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top