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

Need to submit JCL through panel (pass paramater)


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

New User


Joined: 18 Jan 2008
Posts: 47
Location: India

PostPosted: Tue Apr 21, 2009 5:03 pm
Reply with quote

My requirement is that I need to create a panel where I can enter information like the name of JCL and the location and few more parameters.

After I press enter, in the background the jcl should get submitted but before that the jcl should get modified by the parameters I will give in the panel.

Also there should an option on the panel (like EDIT JCL ___ Y/N). This for if the JCL needs to be manually modified.

I tried submitting a job using command "SUBMIT '<Dsn name>'", where I gave the location & name of my JCL in the DSN name. But it is throwing errors.

Also I have searched the forum but did not get what I am looking for.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


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

PostPosted: Tue Apr 21, 2009 5:11 pm
Reply with quote

Perhaps read in the JCL to a workfile which can be processed by EDIT MACRO to make the substitutions. Then, if EDIT_JCL = 'Y' invoke EDIT so the user can modify directly. Next, invoke another EDIT MACRO to SUBMIT.

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Apr 21, 2009 6:10 pm
Reply with quote

Or read about ISPF File Tailoring Services - which was developed to do exactly what you want.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Tue Apr 21, 2009 7:34 pm
Reply with quote

Please check whether you are submitting like

Code:


/*REXX*/                                                 
ADDRESS TSO "SUBMIT '"DATASET NAME"("MEMBER")'"   

Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Apr 21, 2009 9:23 pm
Reply with quote

Quote:
But it is throwing errors.

We need more diagnostic information.
1. Issue PROFILE MSGID prior,
2. search for the error message
3. if you do not understand the error description, ask us.
Back to top
View user's profile Send private message
Pragati Soni

New User


Joined: 18 Jan 2008
Posts: 47
Location: India

PostPosted: Wed Apr 22, 2009 4:09 pm
Reply with quote

It worked. Thanks a lot.

Thanks
premkrishnan wrote:
Please check whether you are submitting like

Code:


/*REXX*/                                                 
ADDRESS TSO "SUBMIT '"DATASET NAME"("MEMBER")'"   

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 Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Call program, directly from panel CLIST & REXX 9
Search our Forums:

Back to Top