Micro Focus COBOL uses a combination of DISPLAY and ACCEPT statements to retrieve environment variables (wherein you will find the login name). Look in your documentation for ENVIRONMENT-NAME and ENVIRONMENT-VALUE. Tom Morrison
Actually I don't think you can do an accept from a file. Choices would be to open, read and close the file OR to pass the login name as a command line parameter when invoking the program.
eg. MYPROG.exe MYPARM and then the program could accept the value from the command line. Syntax is ACCEPT data-name FROM COMMAND-LINE. the data-name would need to be defined in working storage. Clive
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.