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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am


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