View previous topic :: View next topic
|
Author |
Message |
ravikanth
New User
Joined: 12 Jan 2006 Posts: 29
|
|
|
|
Hi All,
I am executing a macro which edits a PDS member(Jcl) and manuplates(inserts & Deletes lines) and comes of it.
My Rexx exec will pass all the members in PDS one after the other to the Edit Macro. But For some of the members the data is saved while for others are not saved.
Just before I came out the Edit Macro, i tried to verify if the steps and the inserts are working find.
I tried the ISREDIT @VP to view the Member, it did not work but opened up the PDS member showing Macro error.
I validated PDS member and the data was manuplaced but when it processed others and finally saved the PDS.
The data was lost.
Could you tell me how I could fix this issue?
Thank You!
Ravikanth Chavali |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
By given us all the code that you used, using
tags.
"isredit @vp" is a site specific command, useless to tell us about it, unless you give its source.
"The data was lost."
Great, which data and when? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
showing Macro error. |
Show the details. |
|
Back to top |
|
|
ravikanth
New User
Joined: 12 Jan 2006 Posts: 29
|
|
|
|
Hi All,
I have called a macro from rexx as below
address ispexec "EDIT DATASET ('"outjcl"') MACRO(EDTmac)"
But the output of this Macro is not getting saved. I did a trace to make sure the macro is inserting steps. And it is.
"Save" command rc is zero.
The same macro works fine for a different member in "outjcl" pds.
Please let me know if here is anything that could be done?
thank you!
ravikanth |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
It's obviously line 9 of your edit macro code |
|
Back to top |
|
|
ravikanth
New User
Joined: 12 Jan 2006 Posts: 29
|
|
|
|
Thank you all for taking time!
It was a code/logic issues. The ISREDIT worked fine and save but it was later overriden.
Thanks,
Ravikanth Chavali |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thank you for the update
Hopefully, you now understand that the forum had little useful for you because you provided no info for someone to use to help you.
Had you posted the requested code, someone could have replied that the macro was probably not the problem. . . And you would have gotten an answer a week ago. . .
d |
|
Back to top |
|
|
|