When transfering data from the AS400 to a PC as a text file using the iSeries transfer, the numeric values are right justified and this is what I need. I am trying to setup a CL that will do this with out any user interaction. But whenever I try to do this on the AS400 using CPYTOIMPF or CPYTOSTMF the numeric values are left justified. How can I get around this issue without having the user upload these files every week?
Thanks Dave
Software/Hardware used:
ASKED:
July 20, 2009 5:29 PM
UPDATED:
July 23, 2009 4:17 PM
Phil,
This is the CPYTOIMPF I am using,
CPYTOIMPF FROMFILE(LIB/FILE &MLNAME) +
TOSTMF(‘/payfiles/PAY.TXT’) +
MBROPT(*REPLACE) STMFCODPAG(*STMF) +
RCDDLM(*CRLF) DTAFMT(*FIXED) NULLIND(*NO)
As for the client access it is the IBM iSeries access for Windows
Just a transfer of a file member to a ASCII text file.
Phil,
My CPYTOIMPF does not have the keyword NUMFLDPAD.
Dave
Phil,
Thank you for your help. We will be going the V6R1 next week. We have V6R1 on our one system, so I was able to try the new CPYTOIMPF using the keyword NUMFLDPAD *BLANK. The file is in the correct format for our client.
Dave