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
 

 

Finding "actual" last data line

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Finding "actual" last data line
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jan 15, 2008 8:09 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jan 15, 2008 8:21 pm    Post subject:
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    Post subject:
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    Post subject:
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    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
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am


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