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
 
How to use shift-command in edit-macro

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 757
Location: Germany

PostPosted: Sat Jan 06, 2007 12:56 am    Post subject: How to use shift-command in edit-macro
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    Post subject: Re: How to use shift-command in edit-macro
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: 757
Location: Germany

PostPosted: Mon Jan 08, 2007 5:06 pm    Post subject: Re: How to use shift-command in edit-macro
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    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 MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm

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