editing datasets behind the scenes
Posted: Wed Mar 17, 2010 9:24 pm
I'm trying to edit datasets using a REXX program, ISPF Services and an ISPF Edit macro but I'm not getting the desired results:
here's my calling rexx:
CALLED:
I wanted to edit the dataset without actually opening it, plus it's not actually executing my macro. I'm still figuring it out but cant seem to find the answer.
here's my calling rexx:
/*REXX*/
DATASET = "my.dataset"
STRING = 'ABC'
SAY "CALLING CHGALL MACRO"
ADDRESS ISPEXEC "VPUT STRING"
ADDRESS ISPEXEC "EDIT DATASET("DATASET") MACRO(CALLED)"
DATASET = "my.dataset"
STRING = 'ABC'
SAY "CALLING CHGALL MACRO"
ADDRESS ISPEXEC "VPUT STRING"
ADDRESS ISPEXEC "EDIT DATASET("DATASET") MACRO(CALLED)"
CALLED:
/*REXX*/
ADDRESS ISREDIT
MACRO(CALLED)
ADDRESS ISPEXEC "VGET STRING"
"C ALL STRING 'DEF'"
"SAVE"
"END"
RETURN
ADDRESS ISREDIT
MACRO(CALLED)
ADDRESS ISPEXEC "VGET STRING"
"C ALL STRING 'DEF'"
"SAVE"
"END"
RETURN
I wanted to edit the dataset without actually opening it, plus it's not actually executing my macro. I'm still figuring it out but cant seem to find the answer.