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

Batch job submission via online program


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mosinjamadar

New User


Joined: 26 Sep 2007
Posts: 42
Location: pune

PostPosted: Mon Apr 12, 2010 7:36 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


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

PostPosted: Mon Apr 12, 2010 7:46 pm
Reply with quote

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.... icon_rolleyes.gif

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

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Wed Apr 14, 2010 2:34 am
Reply with quote

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
View user's profile Send private message
mosinjamadar

New User


Joined: 26 Sep 2007
Posts: 42
Location: pune

PostPosted: Wed Apr 14, 2010 2:40 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Apr 14, 2010 4:31 pm
Reply with quote

Quote:
following are spool commands i m using


in that order? The SPOOLCLOSE is before the SPOOLWRITE.....
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Apr 14, 2010 7:03 pm
Reply with quote

IBM provides "an example of a COBOL program using SPOOL commands for an internal reader"
Don't forget to read the information provided with the example.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Thu Apr 15, 2010 2:14 am
Reply with quote

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. icon_exclaim.gif
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 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 Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top