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