Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 2502
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: 992
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: 1226
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 Batch job tuning sgandhla Testing & Performance analysis 0 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us