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

How to execute a batch job from a CICS Screen


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Wed Nov 12, 2008 10:06 am
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
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

Moderator Emeritus


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

PostPosted: Thu Nov 13, 2008 12:12 am
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Nov 13, 2008 12:28 am
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
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
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Nov 13, 2008 11:57 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Nov 14, 2008 2:05 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
Search our Forums:

Back to Top