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

How to use shift-command in edit-macro


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

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Sat Jan 06, 2007 12:56 am
Reply with quote

Hi all !

Now it's on me to ask a question.

In a edit-macro i do some automatic changes to a dataset like

x all
f all 'string-a'
del all x

...and so on

Ok by this.

Now i want to shift the lines to left about 12 chars.
Normaly as line-block-command i use " ((12 for shifting.

Is there a way to achive this in a edit-macro ???

Thanks in advance & regards,
UmeySan
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Sat Jan 06, 2007 2:01 am
Reply with quote

Take a look at this link, Page 392 discusses 'SHIFT (', didn't look at it in depth.

ISPF Edit and Edit Macros
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Jan 08, 2007 5:06 pm
Reply with quote

Hi David !

Thanks a lot.

After a time of trying the commands, i wrote my little own shift-macro.

Thank's & Regards, UmeySan

/********************************************/
/* SHIFT EDIT MACRO */
/* UMSHIFT R,5 / UMSHIFT L,7 */
/********************************************/


ISREDIT MACRO (R,N) NOPROCESS
ISPEXEC CONTROL ERRORS RETURN
ISREDIT PROCESS RANGE M MM
ISREDIT (LINE1) = LINENUM .ZFRANGE
ISREDIT (LINE2) = LINENUM .ZLRANGE
SET LINE = &LINE1
DO WHILE &LINE <= &LINE2
ISREDIT CURSOR = &LINE
IF &R=L THEN -
ISREDIT SHIFT ( .ZCSR &N
ELSE -
ISREDIT SHIFT ) .ZCSR &N
SET LINE = &LINE + 1
END
ISREDIT CURSOR = &LINE1
EXIT
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Shift left VB record without x00 endi... DFSORT/ICETOOL 11
Search our Forums:

Back to Top