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

Finding "actual" last data line


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

New User


Joined: 15 Oct 2007
Posts: 27
Location: Canada

PostPosted: Tue Jan 15, 2008 7:14 pm
Reply with quote

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

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Jan 15, 2008 8:02 pm
Reply with quote

Have you tried:

f p'^' last
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jan 15, 2008 8:09 pm
Reply with quote

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

Global Moderator


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

PostPosted: Tue Jan 15, 2008 8:21 pm
Reply with quote

Thanks Jack, got the picture now

try ...................

Code:

F '^' LAST
ISREDIT (CRSLINE,CRSCOL) = CURSOR"         
"ISREDIT COPY 'whatever' AFTER " CRSLINE
Back to top
View user's profile Send private message
pauly_william

New User


Joined: 15 Oct 2007
Posts: 27
Location: Canada

PostPosted: Tue Jan 15, 2008 8:46 pm
Reply with quote

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

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Jan 16, 2008 1:33 am
Reply with quote

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
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts SCOPE PENDING option -check data DB2 2
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
Search our Forums:

Back to Top