I have a VB.net application which imports a file called resource_NAMEOFEXE.txt and when my stream Reader takes in just "resource_NAMEOFEXE.txt" as location it assume local, im guessing, and reads the file correctly when ran by user.
Then I tried running a jcl job that is supposed to run the exe the program cannot find the local path automatically. So I tried hardcoding the local path into the exe itself, and both jcl run and user run the program imported correctly. Note: the jcl is on a mainframe, the exe is on a server.
//SFARENAM EXEC P2CUCMD
//SCRIPT DD *
"\\<serverName>\$APPLE\testAndRename.exe"
/*
//UCMDOPT DD DISP=SHR,DSN=IC.D2C.UCMDOPT.FILE(UZAO0001)
//SYSIN DD *
-s SCRIPT
-host <servername>
-userid <userid>
-script SCRIPT
-x UCMDOPT
/*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//
Could this be a JCL issue, or should I format the vb.net location in a special way to ask for local exe location.