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

Starting a PROC with parameters from an ISREDIT maro


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ssardo

New User


Joined: 23 Mar 2007
Posts: 3
Location: Bollate - Italy

PostPosted: Tue Oct 15, 2024 12:39 pm
Reply with quote

Hi to all.
I've to develop an ISREDIT macro, written in Rexx, that calls a panel where a user has to insert some values; from these values the Rexx will identify a specific PROC in a library.
Then the Rexx should "START" that PROC passing it some parameters (the parameters are managed by the PROC).
Is there a way to do so?
...or any workaround?

The onky workaround I have in my mind is to build the needed job internally in the rexx module, than submit it in someway, but I think "SUBmit" command works only with the underlying dataset....

Thanks for any help!
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1312
Location: Bamberg, Germany

PostPosted: Tue Oct 15, 2024 12:45 pm
Reply with quote

Should be possible IMHO.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1204
Location: Dublin, Ireland

PostPosted: Tue Oct 15, 2024 2:33 pm
Reply with quote

Quote:
The onky workaround I have in my mind is to build the needed job internally in the rexx module, than submit it in someway, but I think "SUBmit" command works only with the underlying dataset....


You can build the job to invoke the PROC in a temporary (ZTEMPF) dataset and use an edit macro to submit from this dataset - e.g.:

Code:
  address tso                                                         
     "ALLOC FI(JCLFILE) DA('"ZTEMPF"') NEW REUSE UNIT(SYSDA) DELETE " ,
        "LRECL(80) RECFM (F B) BLKSIZE(3200) "                         
     "EXECIO * DISKW JCLFILE (STEM jcl. FINIS)"                       
                                                                       
  address ispexec                                                     
  "edit dataset('"ZTEMPF"') macro(mysubmit)"                           
                                                                       
  address tso                                                         
  "FREE FI(JCLFILE) "                                                 
                                                                       


The mysubmit macro:

Code:
/* Rexx mysubmit*/     
address ispexec         
  "ISREDIT MACRO"       
  "ISREDIT SUB"         
  "ISREDIT END"         
EXIT                   



Garry.
Back to top
View user's profile Send private message
ssardo

New User


Joined: 23 Mar 2007
Posts: 3
Location: Bollate - Italy

PostPosted: Tue Oct 15, 2024 3:18 pm
Reply with quote

Wow! :-)
Thanks a lot, Garry.
I'll test this solution asap, and I'll let you know.
Back to top
View user's profile Send private message
ssardo

New User


Joined: 23 Mar 2007
Posts: 3
Location: Bollate - Italy

PostPosted: Tue Oct 15, 2024 4:44 pm
Reply with quote

It works fine!
Thanks again, to all

[/code]
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1204
Location: Dublin, Ireland

PostPosted: Tue Oct 15, 2024 7:04 pm
Reply with quote

Glad to have been able to help. Thanks for letting us know icon_biggrin.gif

Garry.
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 726
Location: Denmark

PostPosted: Tue Oct 15, 2024 11:34 pm
Reply with quote

You don't actually have to do a submit, you can write directly to the internal reader as shown in the sample:
Code:
 j.1= '//BR14     JOB (1),'ZZZ',CLASS=A,COND=(0,LT),REGION=0M'
 j.2= '//A   EXEC PGM=IEFBR14                                '
 j.0=2                                                         
 cc=bpxwdyn('alloc rtddn(dd1) sysout(a) writer(intrdr)')       
 "execio" j.0 "diskw" dd1 "(stem j. finis)"                   
 cc=bpxwdyn('free dd('dd1')')                       

If you are generating the job using ISPF skeletons, then you can just allocate the ISPFILE DD with the 'writer' operand.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts passing symbolic parameters through d... JCL & VSAM 3
No new posts Same command as on commandline in REX... TSO/ISPF 6
Search our Forums:

Back to Top