Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

File generations doubt

Former Member
0 Likes
441

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 ...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
411

Hello Bruno,

If you are meaning positions as the length of the file, and if you are checking the file in AL11, there is a limitation that only 255 characters per line will be displayed, though it doesnt mean that data is not written to the file. You can confirm this by downloading the AL11 file using the transaction CG3y.

Vikranth

2 REPLIES 2
Read only

Former Member
0 Likes
412

Hello Bruno,

If you are meaning positions as the length of the file, and if you are checking the file in AL11, there is a limitation that only 255 characters per line will be displayed, though it doesnt mean that data is not written to the file. You can confirm this by downloading the AL11 file using the transaction CG3y.

Vikranth

Read only

0 Likes
411

Ow man ...

You are right. Upload file from AL11 makes the file wrong. Thx!!