View previous topic :: View next topic
|
Author |
Message |
babuprasad
New User
Joined: 01 Jul 2008 Posts: 7 Location: bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Raghu navaikulam
Active User
Joined: 27 Sep 2008 Posts: 193 Location: chennai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
Pradip kumar Mohanty
New User
Joined: 16 Sep 2007 Posts: 33 Location: India
|
|
|
|
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 |
|
|
Raghu navaikulam
Active User
Joined: 27 Sep 2008 Posts: 193 Location: chennai
|
|
|
|
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 |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
Some shops use Transient Data Queues,
talk to you CICS Systems people. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
babuprasad
New User
Joined: 01 Jul 2008 Posts: 7 Location: bangalore
|
|
|
|
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 ......... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
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 |
|
|
|