15 pts.
 How can I transfer an ASCII file with negative numbers to my iSeries
I need to transfer an ASCII file that has a field that may contain negative numbers to my iSeries. I'm getting nowhere with this. Can someone tell me how I might do this?

Software/Hardware used:
ASKED: January 12, 2009  5:29 PM
UPDATED: January 13, 2009  4:23 PM

Answer Wiki:
Is this a flat file or a deliminated file. You may need to create an RPG program -- Character strings with leading / trailing - are handled properly at conversion using %DEC Phil
Last Wiki Answer Submitted:  January 12, 2009  7:28 pm  by  philpl1jb   44,150 pts.
All Answer Wiki Contributors:  philpl1jb   44,150 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

Phil,

I can have it as a flat file or a delimited file.
What type of conversion are you talking about using %dec?
Robert

 15 pts.

 

No problem use CPYFRMIMPF it defaults to CSV deliminated “” and ,
and will move -54.21 to a signed or packed field as negative 54.21.

Phil

 44,150 pts.