Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7315

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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us