Page 1 of 1

Edit a dataset without opening in front of screen....

PostPosted: Tue May 25, 2010 2:39 pm
by Balamurugan3
Hi All,

I am new to REXX so sorry if this is a simple question....I have an requirement in REXX where i have to use edit macro to edit a dataset.... My rexx code would get a series of inputs through panels & would edit an dataset & will submit the job , Edit Macro is working fine, but the problem is every time it edits the dataset, it opens the dataset before screen & show the changes made. I have to make it happen internally & do not want to see the changes reflected in dataset through screen, Instead it can submit the job as soon as changes are made.....

Can any one help me in this.....

Re: Edit a dataset without opening in front of screen....

PostPosted: Tue May 25, 2010 3:09 pm
by MrSpock
What does your macro look like?

Re: Edit a dataset without opening in front of screen....

PostPosted: Tue May 25, 2010 3:16 pm
by Balamurugan3
This is how my macro looks like....
Actually it changes the value OLD with the value in NEW which is obtained by use of panel...

CHAMACRO :
ADDRESS ISREDIT "MACRO"
ADDRESS ISPEXEC "VGET (OLD) PROFILE"
ADDRESS ISPEXEC "VGET (NEW) PROFILE"
ADDRESS ISREDIT C OLD NEW


This macro is called by following code


ADDRESS ISPEXEC "VPUT (OLD) PROFILE"
ADDRESS ISPEXEC "VPUT (NEW) PROFILE"
ADDRESS ISPEXEC "EDIT DATASET('XXX.XXX.XXX')
MACRO(CHAMACRO)"

Re: Edit a dataset without opening in front of screen....

PostPosted: Tue May 25, 2010 5:41 pm
by MrSpock
Where's the rest of the macro code? (like an END or SAVE or CANCEL statement?)

Re: Edit a dataset without opening in front of screen....

PostPosted: Wed May 26, 2010 9:42 am
by Balamurugan3
Thanks Mr.Spock...... I have missed following END Command...

Address ISREDIT "END"

That was the one which was causing trouble.... It works fine now.....