Iporting... problem solved
Well, of course like so:
INPUT STREAM file2 FROM value(pi_file_body).
REPEAT:
IMPORT STREAM file2 UNFORMATTED text-string.
IF text-string = "" THEN DO:
PUT STREAM file1 UNFORMATTED SKIP(1).
END.
PUT STREAM file1...
Importing... step 2
Hiya again.
I solved the problem using this:
DEFINE VARIABLE text-string AS CHARACTER NO-UNDO.
INPUT STREAM file2 FROM value(pi_file_body).
REPEAT:
IMPORT STREAM file2 UNFORMATTED text-string.
PUT STREAM file1 UNFORMATTED text-string SKIP.
END.
INPUT...
Hiya.
I have a problem. I've working on a program that has generated a text file like this:
output stream file1 to value(g_body_filepath).
put stream file1 UNFORMATTED variable_1 SKIP.
put stream file1 UNFORMATTED variable_3 SKIP.
put stream file1 UNFORMATTED variable_and-so-forth SKIP...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.