Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Batch job submission via online program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Batch job submission via online program
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Mon Apr 12, 2010 7:46 pm    Post subject: Reply to: Batch job submission via online program
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    Post subject:
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    Post subject: Reply to: Batch job submission via online program
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

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Apr 14, 2010 4:31 pm    Post subject:
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: 1243
Location: Israel

PostPosted: Wed Apr 14, 2010 7:03 pm    Post subject:
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    Post subject:
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    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 Generate public-private key in batch ... vasanthz All Other Mainframe Topics 3 Fri Sep 15, 2017 9:20 am
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us