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
 

 

Write decimal value to ouput file

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

New User


Joined: 21 Aug 2008
Posts: 5
Location: Pune

PostPosted: Thu Jul 29, 2010 5:51 pm    Post subject: Write decimal value to ouput file
Reply with quote

I need to write a decimal value (8 N 2) to output file with decimal.
Please suggest how this can be done.


Thanks..
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: Thu Jul 29, 2010 5:58 pm    Post subject:
Reply with quote

Then why have you posted this in the ABENDS & Debugging forum.

Which language are we talking here, any more info would be appreciated.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Jul 29, 2010 5:59 pm    Post subject: Re: Write decimal value to ouput file
Reply with quote

jkonica wrote:
I need to write a decimal value (8 N 2) to output file with decimal.
Please suggest how this can be done.


Thanks..


What language?

For Easytrieve you need to use a edit mask, read the manual.
Back to top
View user's profile Send private message
jkonica

New User


Joined: 21 Aug 2008
Posts: 5
Location: Pune

PostPosted: Thu Jul 29, 2010 8:40 pm    Post subject: Reply to: Write decimal value to ouput file
Reply with quote

Sorry .. i did not mention that...
yes...this is about easytrieve...
edit mask can be done to variables that r written to output file also?
Back to top
View user's profile Send private message
jkonica

New User


Joined: 21 Aug 2008
Posts: 5
Location: Pune

PostPosted: Thu Jul 29, 2010 9:06 pm    Post subject: Reply to: Write decimal value to ouput file
Reply with quote

I am writing a variable.. to an output file...
variable is..

OUT-AMT 17 8 N 2

When i write OUT-AMT to output file, its value is '00001234'
while on display it is 12.34...

while writing to file, it should be 12.34
Please suggest on this..
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jul 31, 2010 9:59 am    Post subject:
Reply with quote

Hello,

Suggest you create the value (using the edit mask) in a working variable. Redefine this working variable as a character field. Then move the character redefinition to the output file.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7255

PostPosted: Sun Mar 17, 2013 6:39 am    Post subject: Reply to: Write decimal value to ouput file
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 Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
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
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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