File Handler behavior in managed code

In native COBOL if you have "SELECT DATA-FILE ASSIGN TO DISK 'OLD\Data.dat'" and "OPEN INPUT DATA-FILE" then the File Handler will look for an environment variable named "dd_OLD" and replace the "OLD" in the SELECT clause literal with the contents of the environment variable (if found). But what happens in managed code? We are getting "File not found". Is the managed-code version of the File Handler looking for "dd_OLD" somewhere other than in the environment, or does this functionality not exist in managed code?
Parents
  • We're using VC 2.3.  We are still fooling around with using ASPX to call COBOL DLLs.  We've ditched the idea of using native COBOL DLLs because we never could get around that "wrong format" error and now we're trying managed COBOL.  IIS is running under LocalSystem.  The ASPX program is running under a "service account" used to run the web site.  We've logged into the web server under the service account and created the dd_old environment variable with the required path as its value.  And CORRECTION, we're getting "directory not found" vice "file not found".

    Where is app.config?  Is this machine.config or web.config?  Is it to be set in the ASPX project or the COBOL project?

Reply
  • We're using VC 2.3.  We are still fooling around with using ASPX to call COBOL DLLs.  We've ditched the idea of using native COBOL DLLs because we never could get around that "wrong format" error and now we're trying managed COBOL.  IIS is running under LocalSystem.  The ASPX program is running under a "service account" used to run the web site.  We've logged into the web server under the service account and created the dd_old environment variable with the required path as its value.  And CORRECTION, we're getting "directory not found" vice "file not found".

    Where is app.config?  Is this machine.config or web.config?  Is it to be set in the ASPX project or the COBOL project?

Children
No Data