Skip to Content
0
Former Member
Dec 04, 2009 at 12:32 PM

File generations doubt

30 Views

Hello Fellas ...

I'm creating a file that must have 350 positions. The last field, that is called observation, has a 45 postions.

The problem is:

If that field do not have 45 postions, the file is generated with with less than 350 postions.

Look at my code and see if there is something wrong:

    CONCATENATE filename file_number file_ext INTO file.
    OPEN DATASET file FOR OUTPUT IN TEXT MODE
    ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.

DATA: trans_file  TYPE string.     

TRANSFER trans_file TO file LENGTH cg_350.

Thx for any help ...