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

open dataset does not return proper subrc?

Former Member
0 Likes
353

OPEN DATASET lc_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

In this statement, lc_filename has the value C:\temp\mainfilereport_20090724163319.TXT

I expect this to fail.

But the subrc is being returned as ZERO.

Please advise what is wrong with this statement..

Thanks

OPEN DATASET lc_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

In this statement, lc_filename has the value C:\temp\mainfilereport_20090724163319.TXT

I expect this to fail.

But the subrc is being returned as ZERO.

Please advise what is wrong with this statement..

Thanks

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
324

Did you check SAP notes? Maybe the OS creates the file in DIR_HOME directory when the path is invalid. Could you check in AL11? You may also add "MESSAGE msg" to the "OPEN DATASET", maybe you'll get more information.