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

Find and copy the entire line to another member


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

New User


Joined: 16 Jul 2006
Posts: 1
Location: Chennai

PostPosted: Fri Nov 03, 2006 2:55 pm
Reply with quote

Hi guys,
I want to find a particular word in a member of a pds and copy the entire line to another member. is there any command like 'isredit cut .zcsr" which i can use to cut the line and paste it in another member?

Thanks,
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Fri Nov 03, 2006 3:07 pm
Reply with quote

Hi Nike !

Have a look at the cut/paste rexx of IBM. Theese are in standard
ISPF-Libs allocatet to your user.

Look at ISREDIT PROCESS RANGE C M

Do
'ISREDIT (CMD) = RANGE_CMD' /* Get the command */
'ISREDIT (LINE1) = LINENUM .ZFRANGE' /* Get first line in range*/
'ISREDIT (LINE2) = LINENUM .ZLRANGE' /* Get last line in range */
linestocut = line2 - line1 + 1
End

This is quiet a nice example for you.
There you could study the handling.


Regards, umeySan
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 To find whether record count are true... DFSORT/ICETOOL 6
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top