5 pts.
 How use CPYTOPCD to record 240 long
I have tried to create a file where every record is 240 characters long. Every record should be filled with spaces if the record is shorter than 240 char. In my program I use CPYTOPCD option TRNFMT(*NOTEXT) but the record is cut on 132 characters.Please, anybody could help me to solve this?



Software/Hardware used:
AS400 RPG
ASKED: December 2, 2009  5:20 PM
UPDATED: December 2, 2009  5:55 PM

Answer Wiki:
Here is the Help Text for *NOTEXT option *NOTEXT The records in the PC document will be fixed length records. The length of the records in the database file is used for the length of the records in the PC document. * So your input file is 132 characters long. If you want 240 for the output, you will need to make the input file 240 characters long.
Last Wiki Answer Submitted:  December 2, 2009  5:49 pm  by  CharlieBrowne   32,785 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,785 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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