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
 

 

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: 755
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: 755
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 RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 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 Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm


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