Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Help needed in ISREDIT COPY command.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Help needed in ISREDIT COPY command.
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: 1027
Location: Oostende, Belgium

PostPosted: Wed Mar 03, 2010 4:31 am    Post subject: Re: Help needed in ISREDIT COPY command.
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: 1232
Location: Israel

PostPosted: Wed Mar 03, 2010 4:23 pm    Post subject: Reply to: Help needed in ISREDIT COPY command.
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: 1027
Location: Oostende, Belgium

PostPosted: Wed Mar 03, 2010 5:10 pm    Post subject: Re: Reply to: Help needed in ISREDIT COPY command.
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    Post subject: Thanks to all of you.
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    Post subject: Reply to: Help needed in ISREDIT COPY command.
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Sat Apr 10, 2010 10:36 pm    Post subject: Reply to: Help needed in ISREDIT COPY command.
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 )
http://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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us