Have a look at the LISTDSI function. It might help.
Here's an example
/*rexx*/
x = "'MYREXX.LIB'" /* can be any valid dsn */
X = LISTDSI(x)
say x
say 'Dataset name :' sysdsname
say 'Date created :' syscreate
say 'Date referenced:' sysrefdate
say 'Updated? :' sysupdated
Hope this help
This is an simple example to calculate the hours:
/* rexx */
date1 = '12 Oct 2006'
time1 = 9
/* use "date2 = DATE()" for current date */
date2 = '13 Oct 2006'
/* use "time2 = time('H')" for current time */
time2 = 11
date1 = DATE('B',date1)
date2 = DATE('B',date2)
datediff = date2 - date1 - 1...
All you have to do is remove the double quotes around MBR on your LMMLIST statement
"LMMLIST DATAID("INPUTDD") MEMBER("MBR") OPTION(LIST) STATS (NO)"
Should be
"LMMLIST DATAID("INPUTDD") MEMBER(MBR) OPTION(LIST) STATS (NO)"
Hope this helps
Using LM functions and EDIT macros allow you to issue ISPF edit commands like FIND CHANGE etc... you can also use EXECIO to edit any dataset but your code will be completely different.
Can you list both programs? THis will give me a better idea of what's not working.
BTW, I made a slight...
Macname is just a name...Like I said, this is another REXX pgm.
"macname" could look like this :
/* REXX */
Address ISREDIT "MACRO (PARM)"
Address ISPEXEC "CONTROL ERRORS RETURN"
address ispexec "ISREDIT FIND ' JOB '"
etc...
Address ISREDIT "END" /* to save the member */
exit
/* end of...
Make sure you specify an EDIT MACRO in your "EDIT DATAID..." Like
Address ISPEXEC "EDIT DATAID("FILEID") MEMBER("MEMBER") MACRO("macname")"
After you've done all your changes, the macro should contain either a:
Address ISREDIT "END" /*To save the changes */
or
Address ISREDIT "CANCEL" /*to...
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.