Ansicht
Dokumentation

04860 - Listing Directory Contents

04860 - Listing Directory Contents

rdisp/max_wprun_time - Maximum work process run time   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Listing Directory Contents

Hi Guys,

I have some code from a UNIX Box that I need to port to the /400
UNIXCOM contains 'ls /tmp/events/d01' which exists and has a file.
I doubt there is an authority issue either.
TEMP_PATH contains '/tmp/martin[timestamp]'
SY-SUBRC is 8 and MSG_TEXT has "No error"
When I look (break point set) No file exists.

Any example you guys can provide is greatly appreciated.

Thanks

Martin

OPEN DATASET TEMP_PATH FOR OUTPUT IN TEXT MODE
FILTER UNIXCOM MESSAGE MSG_TEXT.
CLOSE DATASET TEMP_PATH.
OPEN DATASET TEMP_PATH FOR INPUT IN TEXT MODE.
IF SY-SUBRC NE 0.
WRITE:/ 'ERROR:', MSG_TEXT.
EXIT.
ENDIF.




[Non-text portions of this message have been removed]


Durban Tours - Südafrika Safari

Addresses (Business Address Services)   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 1137 Date: 20240620 Time: 004855     sap01-206 ( 2 ms )