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: 7251

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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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