2008 Aug 20 9:42 AM
Hi,
I'm trying to create a file with the following instruction:
OPEN DATASET '/tmp/200808200905.txt' in text mode message msg.
When this instruction is executed the sy-subrc is equal to 8 and msg variable says 'No such file or directory', then the next instruction is:
TRANSFER 'xxx' TO '/tmp/200808200905.txt', and this instruction woks fine, sy-subrc = 0 and the file is created but as the documentation says the file is created in binary mode but I need in text mode.
Anyone can help me?
Thanks.
Juan.
2008 Aug 20 9:45 AM
try this way and see..
data: file type rlgrap-filename.
file = ''/tmp/200808200905.txt' .
OPEN DATASET file for output in text mode message msg encoding default.
Hi,
I'm trying to create a file with the following instruction:
OPEN DATASET '/tmp/200808200905.txt' in text mode message msg.
When this instruction is executed the sy-subrc is equal to 8 and msg variable says 'No such file or directory', then the next instruction is:
TRANSFER 'xxx' TO '/tmp/200808200905.txt', and this instruction woks fine, sy-subrc = 0 and the file is created but as the documentation says the file is created in binary mode but I need in text mode.
Anyone can help me?
Thanks.
Juan.
2008 Aug 20 9:45 AM
try this way and see..
data: file type rlgrap-filename.
file = ''/tmp/200808200905.txt' .
OPEN DATASET file for output in text mode message msg encoding default.
2008 Aug 20 10:01 AM