Im new to REXX and from what i have read I can OPEN, COPY and EDIT A PDS member but to my libary. What im trying to do is have a user click pick a option in ISPF panel and have it copy a pds member to there personal pds libary this is the code i have
/*REXX*/
ADDRESS ISPEXEC
"LMINIT DATAID(INDD1) DATASET('CRM.CRM1JAR.PDSTEST')"
SAY INDD1
"LMINIT DATAID(OUTDD1) DATASET('CRM.CRM1JAR.PDSTEST')"
SAY OUTDD1
"LMCOPY FROMID("INDD1") TODATAID("OUTDD1")
FROMMEM(ASYSNEWK) TOMEM(ASYSNEW1) REPLACE PACK"
SAY COPIED
"LMFREE DATAID("INDD1")"
SAY FREE INDD1
"LMFREE DATAID("OUTDD1")"
SAY FREE OUTDD1
ADDRESS ISPEXEC
"EDIT DATASET('CRM.CRM1JAR.PDSTEST(ASYSNEW1)')"