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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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