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 execute a batch job from a CICS Screen

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
babuprasad

New User


Joined: 01 Jul 2008
Posts: 7
Location: bangalore

PostPosted: Wed Nov 12, 2008 10:04 am    Post subject: How to execute a batch job from a CICS Screen
Reply with quote

Hi,

I have a requirement to run a JCL from CICS screen. Initially I am accepting some values from a CICS screen and writing into a ESDS. When i move onto a new screen, I have a option which when slected should run a JCL that transfers the records from ESDS to flat file....

So how do i make this JCL run from CICS region...
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: Wed Nov 12, 2008 10:06 am    Post subject:
Reply with quote

Hello,

Quote:
So how do i make this JCL run from CICS region...
Use the "internal reader".

Talk with your cics system support for how this is done on your system.
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Wed Nov 12, 2008 11:56 pm    Post subject: Reply to: How to execute a batch job from a CICS Screen
Reply with quote

Hi babuprasad

To use batch job through CICS, UA need to know the use of SPOOLOPEN, SPOOLWRITE and SPOOLCLOSE command in CICS. Then UA can write JCL statement through Ur CICS program or move JCL statements from a 'Q' which is already written and then assign it to an INTERNAL READER. Then JES will take care the JCL in the SPOOL input queue and execute it in Batch AS.

Regards
Raghu
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: Thu Nov 13, 2008 12:12 am    Post subject:
Reply with quote

Hello,

That is one way. There are others. There is probably something already available on that system.

The best source of what is already available is the cics system support for that system.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Nov 13, 2008 12:28 am    Post subject: Re: How to execute a batch job from a CICS Screen
Reply with quote

You should also consult with your System Security folks regarding who the submitting "USER" will be (after the JCL cards have been moved to the RDR) and have they the proper credentials and authorisation for JOB submission?

Bill
Back to top
View user's profile Send private message
Pradip kumar Mohanty

New User


Joined: 16 Sep 2007
Posts: 33
Location: India

PostPosted: Thu Nov 13, 2008 8:30 pm    Post subject:
Reply with quote

Bill,

I think its fair enough to have the authority to run the transaction that writes JOB statements to the internal reader. The OWNER of this job will be CICS itself.

I'm not sure what you meant by "submitting "USER" " !
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Thu Nov 13, 2008 11:02 pm    Post subject:
Reply with quote

That is one way. There are others. There is probably something already available on that system.

Hi dick

Thank you for the info. Can you please tell the other way of submitting a batch job from CICS. If so it is very grateful.

Regards
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Thu Nov 13, 2008 11:35 pm    Post subject:
Reply with quote

Some shops use Transient Data Queues,

talk to you CICS Systems people.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Nov 13, 2008 11:57 pm    Post subject: Re: How to execute a batch job from a CICS Screen
Reply with quote

The USERID (for example, such as yourself) must have some type of authorisation to write the JCL cards to the RDR.
However, the USERID on the JOB card must have authorisation to submit and execute the JOB.

If you're saying that the submitter is CICS (on the JOB card), then ensure the CICS Default User (defined to the SIT) has submittal authority.

Sometimes things like this can get a little dicey....

Regards,

Bill
Back to top
View user's profile Send private message
babuprasad

New User


Joined: 01 Jul 2008
Posts: 7
Location: bangalore

PostPosted: Fri Nov 14, 2008 2:00 pm    Post subject: Reply to: How to execute a batch job from a CICS Screen
Reply with quote

Hi everyone......
I have planned to use the extra partition TDQ to do this job............will update you ppl after i finish with the coding and once....it works fine.....ELSE have to use the INTERNAL READER ......... icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Fri Nov 14, 2008 2:05 pm    Post subject: Reply to: How to execute a batch job from a CICS Screen
Reply with quote

Quote:
I have planned to use the extra partition TDQ to do this job............


it all depends on how Your tdq is setup,
unless it is defined as "SYSOUT(&someclass,INTRDR)" Your jcl will sit there
and disappear at the next cics startup...

maybe the whole post was a typo and You really meant..

..... use an extrapartinion TDQ with the "SYSOUT(&someclass,INTRDR)",
..... or use the SPOOL..... stuff
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm


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