Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us