Highlighted
Honored Contributor.
Honored Contributor.
400 views

get dataset name from cobol program

Hi,


I have to display in sysout the environment value of a envirnoment variable and the dataset name(or file name if is netexpress)

in Mainframe express like on mvs(mainframe) can I get Dataset name calling system program or other ?

in Net express i have solved with this syntax:

DISPLAY NOME-VARIABILE UPON ENVIRONMENT-NAME
ACCEPT VALORE-VARIABILE FROM ENVIRONMENT-VALUE
DISPLAY "FOUND VAR: " VALORE-VARIABILE

in Mfe I have tried to call IKJTSOEV, but give errore 9/173.

There is a system to make it work both in mfe and on the mainframe?

thanks

bye

0 Likes
0 Replies
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.