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
 
Submit a proc multiple times in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
deybumba_2k

New User


Joined: 09 Jan 2006
Posts: 17

PostPosted: Fri Oct 12, 2007 12:46 am    Post subject: Submit a proc multiple times in JCL
Reply with quote

Hi,

I have a requirement that user will input a numeric, say "N" (1 to 9) value that will be passed to a JCL by CA Ideal Panel. Now, I have to call a PROC in the jcl N times (this N is the one input by the user).

How can I do that?
Please let me know.

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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Oct 12, 2007 2:17 am    Post subject: Reply to: Submit a proc multiple times in JCL
Reply with quote

Code:

// SET A=1 - 9
//*
//* PGMX WILL SET THE RETURN-CODE VALUE TO THE
//* SAME VALUE AS THE PARAMETER 'A' FROM CA-IDEAL.
//STEP0000 EXEC PGM=PGMX,PARM='&A'
//*
// IF (STEP0000.RC GE 1) THEN
//STEP0001 EXEC PROCX
// ENDIF
//*
// IF (STEP0000.RC GE 2) THEN
//STEP0002 EXEC PROCX
// ENDIF
...
// IF (STEP0000.RC GE 9) THEN
//STEP0009 EXEC PROCX
// ENDIF
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Oct 12, 2007 2:56 am    Post subject:
Reply with quote

Hello,

When the user enters a number on the IDEAL panel, does the online IDEAL program actually submit the job via the internal reader?
Back to top
View user's profile Send private message
deybumba_2k

New User


Joined: 09 Jan 2006
Posts: 17

PostPosted: Fri Oct 12, 2007 11:14 pm    Post subject:
Reply with quote

No, the CA Ideal does not submit the job, there is a predefined JCL that it picks up and the user have to press one of the PF keys to submit the job.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Oct 12, 2007 11:45 pm    Post subject:
Reply with quote

Hello,

Is it another bit of IDEAL code that "picks it up"?

When the user presses te "submit" PFkey, how is the "picked up" JCL submitted?

At several places, we "picked up" JCL in some IDEAL code, customized it, and then submitted it. It sounds like this would work for you as well. . .

FWIW, i've done Datacom/IDEAL support for almost 25 years. . .
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am

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