IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ISREDIT Macro


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravikanth

New User


Joined: 12 Jan 2006
Posts: 29

PostPosted: Sat Jan 15, 2011 6:13 am
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Sat Jan 15, 2011 6:51 am
Reply with quote

By given us all the code that you used, using
Code:
[code][/code]
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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Sun Jan 16, 2011 5:36 am
Reply with quote

Quote:
showing Macro error.

Show the details.
Back to top
View user's profile Send private message
ravikanth

New User


Joined: 12 Jan 2006
Posts: 29

PostPosted: Sun Jan 16, 2011 10:53 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sun Jan 16, 2011 4:06 pm
Reply with quote

It's obviously line 9 of your edit macro code icon_rolleyes.gif
Back to top
View user's profile Send private message
ravikanth

New User


Joined: 12 Jan 2006
Posts: 29

PostPosted: Mon Jan 24, 2011 4:42 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jan 24, 2011 4:53 am
Reply with quote

Good to hear it is working - thank you for the update icon_smile.gif

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts Issues with executing a REXX MACRO th... TSO/ISPF 4
No new posts Facing issue in Run Edit Macro Job CLIST & REXX 9
No new posts outtrap does not capture within an ed... CLIST & REXX 1
Search our Forums:

Back to Top