Hi,
I need to implement a function with REXX. One basic simple requirement is (1) view or browse a dataset (2) put the name of REXX program you developed in the command line and Enter. (3) the REXX will be executed to identify the PS dataset you are currently viewing or browsing.
Now my question is how to implement the function mentioned in step(3). Which command or function programmed in REXX could retrieve the attributes of the current dataset (i.e. at leat the dataset name ... etc.)? E.g. I programmed a REXX program named MYREXX, then :
--------------------------------------------------------------------------------------------------------------------
VIEW USER123.DSN.PGM(COLPGM01) - 01.14 Columns 00001 00072
****** ***************************** Top of Data ******************************
000100 LINE111
000200 LINE222
000300 LINE333
****** **************************** Bottom of Data ****************************
Command ===> _MYREXX_________________________________________ Scroll ===> CSR
--------------------------------------------------------------------------------------------------------------------
Now I want MYREXX to be executed and print out the dataset name 'USER123.DSN.PGM(COLPGM01)'