Skip to Content
0
Former Member
Apr 16, 2010 at 01:12 AM

TXT files - new line

29 Views

Hi, i have to pass a 2 structures with different lenghts to a TXT file, 1 have 500 lenght and the other 250 lenght, so how i change of line after the 250 characters of the 2nd structure? i think its easy but i don t know how.

example :

Data : begin of struc1.

nd1(100),

nd2(300),

nd3(100),

end of struct1.

Data : begin of struc2.

nd1(100),

nd2(100),

nd3(50),

end of struct2.

Dara: begin of output.

line(500),

end of output.

in both cases i do:

move struct1 to output.

move struct2 to output. (here it should copy 250 and go to the next line)

then i send the structure output to a function with the filename to create the TXT file.

Please, your help would be apreciated!!

Thx!!