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

Help needed in ISREDIT COPY command.


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

New User


Joined: 23 Dec 2009
Posts: 5
Location: United States

PostPosted: Tue Mar 02, 2010 9:42 pm
Reply with quote

Hi All,
I am writing a macro to copy data from another member and paste that data after the first line in my current member.

I am using ISREDIT COPY AFTER .ZCSR PARM.

Where parm has the member name from where data has to be copied.

The data is being inserted into the current member successfully.

Is there any way that we can insert the lines as NOTELINE and not as DATALINE using the copy command.


( I have actually done this by reading the member separately and then inserted the data using the LINE_BEFORE option. But then I found that we can copy the data from another member easily using COPY command.)

Thanks and Regards,
Sudhakar H V
Back to top
View user's profile Send private message
prino

Senior Member


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

PostPosted: Wed Mar 03, 2010 4:31 am
Reply with quote

sudhakarhv wrote:
Is there any way that we can insert the lines as NOTELINE and not as DATALINE using the copy command.

No
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Mar 03, 2010 4:23 pm
Reply with quote

In fact, there may be a possibility, using MODELs.
I have never done that, but models can contain notes, and they will be displayed.

Then you could use the MODEL command instead of COPY in your macro.

There are instructions here: Chapter 4. Using edit models.

It's time to read and learn (I just wish I had enough time...)
Back to top
View user's profile Send private message
prino

Senior Member


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

PostPosted: Wed Mar 03, 2010 5:10 pm
Reply with quote

Marso wrote:
In fact, there may be a possibility, using MODELs.
I have never done that, but models can contain notes, and they will be displayed.

Then you could use the MODEL command instead of COPY in your macro.


That's not possible, as you are required to add a ')N' to lines in models that need to be displayed as =NOTE= lines. Furthermore. converting a member to be copied into MODEL format will take a hell of a lot more time than just 'execio'ing it and spitting it out as NOTELINEs
Back to top
View user's profile Send private message
sudhakarhv

New User


Joined: 23 Dec 2009
Posts: 5
Location: United States

PostPosted: Thu Mar 18, 2010 4:39 pm
Reply with quote

I have used the normal method of inserting the lines using LINE_AFTER option.

And thanks to Marso, till now I am unaware above models. I have gone through the Models concepts from the link provided.
Back to top
View user's profile Send private message
Srinivas46

New User


Joined: 03 Oct 2009
Posts: 4
Location: Chennai

PostPosted: Sat Apr 10, 2010 10:28 pm
Reply with quote

ISREDIT COPY AFTER .ZCSR PARM.

Is it that the PARM in the above macro should be a member of the same PDS where the edit macro exists ?

I want to copy the contents of a member present in a different PDS using the edit macro. How can this be accomplished?

I have tried the below command but was not successful:
"ISREDIT COPY AFTER .ZCSR" myid.pds.name(member1)
It ended giving an error
"Error running MACRO1, Routine not found"


Thanks,
Srinivas46 icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Sat Apr 10, 2010 10:36 pm
Reply with quote

Quote:
I have tried the below command but was not successful:

did You care to look at the manuals ?
starting from ( for example )
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/ISPZPM61

usually the message is a symptom of trying to run things in a wrong environment
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top