View previous topic :: View next topic
|
Author |
Message |
pauly_william
New User
Joined: 15 Oct 2007 Posts: 27 Location: Canada
|
|
|
|
I'm having trouble with a macro pasting from another dataset to the actual last line....not including blank lines, which I realize probably have spaces and considered data.
Is there a way to do:
Code: |
"COPY 'datasetname(#member)' AFTER .zl" |
and incorporate find p'¬' ?
I've tried find p'¬' .zl and keep getting 'Label missing'. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Have you tried:
f p'^' last |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Code: |
"ISREDIT CURSOR = " .ZL
"ISREDIT (CRSLINE,CRSCOL) = CURSOR"
"ISREDIT COPY 'whatever' AFTER " CRSLINE
|
Usually works for me and appends whatever after the last line, but I don't get what you want to do with the find part ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Thanks Jack, got the picture now
try ...................
Code: |
F '^' LAST
ISREDIT (CRSLINE,CRSCOL) = CURSOR"
"ISREDIT COPY 'whatever' AFTER " CRSLINE
|
|
|
Back to top |
|
|
pauly_william
New User
Joined: 15 Oct 2007 Posts: 27 Location: Canada
|
|
|
|
thanks guys...I actually got the following to work for me before I read this:
Code: |
"FIND P'¬' .ZF .ZL LAST"
"(LINE) = CURSOR"
"COPY 'dataset(member)' AFTER "LINE |
you guys rock! |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Thanx for the feedback Will.
It's important that, a month from now, someone reading this can know what the solution was. |
|
Back to top |
|
|
|