Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Mainframe ISPREDIT Macro query

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

Active User


Joined: 28 Sep 2017
Posts: 106
Location: India

PostPosted: Wed May 27, 2020 1:12 pm    Post subject: Mainframe ISPREDIT Macro query
Reply with quote

Hi All,

I have coded my own CUT and PASTE Macros using Labels(Learning purpose).

Like cut the code between two Labels and Paste the code based on cursor position or based on Labels(After or before).

But My query is something like Pasting code after enter A in command line

See details:-

After executing my CUT Macro

Like pasting in my below JCL after user enters Character A as below
Code:

000001 //XXXXREST JOB 1,CLASS=P,MSGCLASS=0,NOTIFY=&SYSUID                   
000002 //********************************************************/         
000003 //*UPDATE JOBID,DUMPNAME,DATASETS TO BE RESTORED.        */         
00000A //********************************************************/         
000005 //RESTORE  EXEC PGM=ADRDSSU PARM=('TYPRUN=NORUN')                   
000006 //SYSMDUMP DD SYSOUT=*                                               
000007 //SYSPRINT DD SYSOUT=*                                               
000008 //INPUT    DD DISP=SHR,DSN=<DUMP-DATASET-NAME> /*UPDATE DUMP NAME*/ 
000009 //SYSIN    DD DUMMY                                                 


In the above code if I issue my paste Macro , It suppose to paste code after Line 4.

But how extract user mentioned character 'A' in Macro?

Any suggestions...

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

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2419
Location: Hampshire, UK

PostPosted: Wed May 27, 2020 1:45 pm    Post subject: Reply to: Mainframe ISPREDIT Macro query
Reply with quote

I think you need to read this section of the manual - "Specifying a destination"
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 387
Location: Denmark

PostPosted: Wed May 27, 2020 3:38 pm    Post subject:
Reply with quote

Snippet from one of my macros:
Code:
 Address IsrEdit                       
 "PROCESS DEST"                       
 if rc<8 then "(lnr)= linenum .zdest" 
 else         "(lnr)= linenum .zcsr " 

I agree with Nic, please refer to the manual for details.
Back to top
View user's profile Send private message
upendrasri

Active User


Joined: 28 Sep 2017
Posts: 106
Location: India

PostPosted: Thu May 28, 2020 5:06 pm    Post subject:
Reply with quote

Hi Nic and WJ,

Thanks for your suggestions..

Regards..
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 Mainframe jcl job with href links not... steven bynum All Other Mainframe Topics 3 Fri Aug 28, 2020 10:02 pm
No new posts A very ingenious mainframe automation... hefiproject.de CA Products 1 Thu Aug 13, 2020 2:59 pm
No new posts ISPF Edit Macro with profile commands... Lynne Schuler TSO/ISPF 14 Thu Jun 18, 2020 7:25 pm
No new posts TSO and the STAX Assembler Macro mxgdontmics PL/I & Assembler 43 Mon Jun 15, 2020 10:33 am
No new posts Need to open a DSN using REXX & e... Y Marwaha CLIST & REXX 10 Fri Jun 05, 2020 7:30 pm

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