View previous topic :: View next topic
|
Author |
Message |
sudhakarhv
New User
Joined: 23 Dec 2009 Posts: 5 Location: United States
|
|
|
|
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 |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
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 |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
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 |
|
|
sudhakarhv
New User
Joined: 23 Dec 2009 Posts: 5 Location: United States
|
|
|
|
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 |
|
|
Srinivas46
New User
Joined: 03 Oct 2009 Posts: 4 Location: Chennai
|
|
|
|
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 |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
Back to top |
|
|
|