185 pts.
 Displaying amount field in query 400.
In query400, i created a report which will be downloaded to excel. If i download report, it is showing amount fields without decimal values.

How to display amount fields with decimal fields using query400?

 



Software/Hardware used:
as400
ASKED: February 17, 2012  12:22 PM
UPDATED: February 27, 2012  8:20 PM

Answer Wiki:
Have you checked the cell formats of the excel sheet to make sure it is set to show decimals?
Last Wiki Answer Submitted:  February 20, 2012  3:27 pm  by  Teandy   5,830 pts.
All Answer Wiki Contributors:  Teandy   5,830 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi JayaShree,

I guess, there is no possibility of missing decimal fields while downloading to Excel.
Verify the fields you have defined using QRY400.

And, You can view the Layout of the report by taking ‘F13′ in Define Result Fields screen.

Pradeep.

 3,370 pts.

 

Execl drops insignificant digits. That is because it imports numeric fields as general number format. No simple export to Excel will do any better. It will also drop leading zeros from dates. ssn and part numbers. You might preceed numbers that must retine the leading zero in a ‘.
Phil

 44,220 pts.

 

If i download report…

Are you downloading a report created by Query/400? Or are you downloading an output file generated out of a Query/400 query?

If you are downloading a file, how are you running the download? What is the definition of the field in the Query/400 output file?

Tom

 108,360 pts.

 

Hi,

I am downloading a report created by query400. In tables, amount columns are numeric fields having length 15 with 0 decimal positions. In query 400, result fields, if i give decimal position as 4, it is showing report output as 15+4. decimal position is not getting included in total length 15.

if i give length 11 and decimal 4, it is showing some replacement character ‘+’ in report.

Please clarify how to display amount columns with decimal positios?

 185 pts.

 

So do you want the result column to be width 19 digits 4

 44,220 pts.

 

The result should contain only 15 digits including decimal positions

 185 pts.

 

So the report, using 15-4 is ok.?
The download isn’t.
Are the missing digits zero?
How do you download your file to excel?

 44,220 pts.

 

Now that I read your statement I’m confused. Are you chaning the width/decimals in Query/400 to 15 4, do you expect this to move the decimal point .. like dividing by 10000?

 44,220 pts.

 

I am downloading a report created by query400.

How are you doing the download?

If you tell us how, some of our confusion should clear up and we can help better.

There are many ways to get output from Query/400 into Excel. Which way are you doing it?

Tom

 108,360 pts.

 

Am downloading the report using IBM Iseries..

 185 pts.

 

Am downloading the report using IBM Iseries..
Yes, well we kind of suspected that, but what do you do to get the report spool file to Excel? What do you do on the 400? What programs do you use on your pc and how does a report spool file end up in Excel columns.

 44,220 pts.

 

Am downloading the report using IBM Iseries..

How do you do that?

What programs do you use? Or what buttons do you click? Or what menu options do you select? Or do you drag and drop the report? Or do you do something else?

Tom

 108,360 pts.