Application Development 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: 

OPEN DATASET hangs

Former Member
0 Kudos
211

Hi,

We have the SAP server and a File server connected by NFS mount. We have the ABAP program which is reading the files on the File server. Sometimes the NFS mount goes down and the ABAP program hangs on the open dataset command for more then 6 to 7 hrs and we need to cancel the program in SM66 or in some other transaction. Is there a function module or any other method to see if the NFS mount is available before the OPEN DATASET statement.

Thanks For your help

Ram

3 REPLIES 3

Former Member
0 Kudos
54

Hi Ram,

Check your DO statements used for READ DATASET. It might be going into an infinite loop.

Regards,

Adi

0 Kudos
54

Hi Adi,

Thanks for your immediate reply. If i run it in debug mode the program is on the OPEN DATASET statement and it does not move from that statement so it is not a problem with DO loop on the READ.

Ram

0 Kudos
54

You could create an external command in SM69 which checked the status of the NFS mount. Execute the command with function SXPG_COMMAND_EXECUTE and read the output table to determine if the NFS moutn is functioning correctly.

Regards,

Steve.