View previous topic :: View next topic
|
Author |
Message |
mosinjamadar
New User
Joined: 26 Sep 2007 Posts: 42 Location: pune
|
|
|
|
I have a requirement of submitting batch job via online program. The job which I'm going to submit has a program to execute which is a COBOL-DB2 program I have checked some posts on SPOOLCLOSE and SPOOLWRITE commands but I didn't get how to specify my PDS and membername which has the job . |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Search the CICS forum for INTRDR (Internal Reader). You'll get hits on this and within these hits, will also include verbiage (and perhaps examples) for using the SPOOLOPEN, SPOOLWRITE and SPOOLCLOSE CICS API's.
You're going to have to put some research into this as there isn't any one way to accomplish this.
Please refrain from using "urgent" as what you need is merely work-related.
Children aren't dying in a fire....
Bill |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
Quote: |
I didn't get how to specify my PDS and membername which has the job |
Your cics program that uses spoolopen, spoolwrite, spoolclose
must write JOB JCL statements , and within JCL statement you can
specify a PDS and membername.
I would suggest you talk to you CICS technical support people
before you go off' writing somethign on your own. Most shops
already have some way of doing this. |
|
Back to top |
|
|
mosinjamadar
New User
Joined: 26 Sep 2007 Posts: 42 Location: pune
|
|
|
|
HI
Thanks for your reply
I have used SPOOL commands in my cics program to write job into spool
SPOOLOPEN ,write clsoe are successful but job is not geting triggered
is there any parameter needs to be set in SIT(system initialization table for this to take plae) some one told me DFHSIT is the parameter whcih needs to be set as Y
Could you please help
following are spool commands i m using
Code: |
EXEC CICS SPOOLOPEN OUTPUT
TOKEN (TOKEN)
USERID ('INTRDR')
NODE ('BLDVMB')
CLASS ('B')
PUNCH
RESP (CICS-RESP)
RESP2 (WS-RESP2)
END-EXEC
EXEC CICS SPOOLCLOSE
TOKEN (TOKEN)
RESP (CICS-RESP)
RESP2 (WS-RESP2)
END-EXEC
EXEC CICS SPOOLWRITE
TOKEN (TOKEN)
FROM (WS-JOB-VAR)
RESP (CICS-RESP)
RESP2 (WS-RESP2)
END-EXEC. |
Please help |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Quote: |
following are spool commands i m using |
in that order? The SPOOLCLOSE is before the SPOOLWRITE..... |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
AGAIN, I suggest you talk to you CICS technical support people
before you go off' writing somethign on your own. Most shops
already have some way of doing this. |
|
Back to top |
|
|
|