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

How to format sql output for a decimal value in a flat file.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
neeraj_pathak26

New User


Joined: 02 Jun 2006
Posts: 7

PostPosted: Wed May 19, 2010 6:38 pm
Reply with quote

Hi
I have field defined in table as decimal . it has value as 12.34.Now I am running a job to fetch this value into a flat file, there value is displaying as 1234, but I want to display it as 12.34.
Is there any way I can format this value in sql, to display as I need?
I appricate your help.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 19, 2010 6:48 pm
Reply with quote

Please take the time to think before posting. SQL is hardly a DFSORT function is it ?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed May 19, 2010 7:15 pm
Reply with quote

Quote:
Now I am running a job to fetch this value into a flat file,


would you mind telling us what you are using to 'FETCH' these values?
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Wed May 19, 2010 8:17 pm
Reply with quote

dbzTHEdinosauer wrote:
Quote:
Now I am running a job to fetch this value into a flat file,


would you mind telling us what you are using to 'FETCH' these values?
isn't that clear ? => a job icon_wink.gif
"a job" that executes "a step" either "a utility" or "a program" written in "a language"
Back to top
View user's profile Send private message
neeraj_pathak26

New User


Joined: 02 Jun 2006
Posts: 7

PostPosted: Thu May 20, 2010 10:42 am
Reply with quote

My apiologies posting it under DFSORT title. Will take care next time.
I am using DSNTIAUL, to get data into the flat file.
query is just a normal select from a table.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri May 21, 2010 5:57 pm
Reply with quote

char()
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts Populate last day of the Month in MMD... SYNCSORT 2
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 Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top