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
 

 

Running a CICS transaction from Batch program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
vamseepotti

New User


Joined: 21 Oct 2003
Posts: 45

PostPosted: Thu Nov 24, 2005 8:43 pm    Post subject: Running a CICS transaction from Batch program
Reply with quote

How canI run a Trasaction from Batch Program. Please give me some examples.

Regards,
Vamsee.
Back to top
View user's profile Send private message

iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Thu Dec 08, 2005 7:50 am    Post subject: Re: Running a CICS transaction from Batch program
Reply with quote

Hi vamseepotti,

To my understanding I think this will help you.

Method-1

We have to use SPOOL OPEN, SPOOL WRITE commands in the code. Declare your
JCL in working-storage sections.
Ex:
Code:
01 WS-JCl.
     05 WS-STMT-1 Pic X(80) value ' // Jobcard......"
     05 WS-STMT-2         PIC X(80) value '//step1 Exec pgm = .......'


In the procedure division use
EXEC CICS SPOOL OPEN, EXEC CICS SPOOL WRITE

(Here we have to use the 05 variables one by one). As soon as you issue the SPOOL CLOSE, the job will be submitted. PLease refer in the net for the exact syntax. I am not sure with the syntax.

Method-2

Write in a TDQ all the WS-STMTs as items. The last item to be written
should be a JCL delimiter. As soon as you write the delimiter into the
queue, the job will be submitted.


Hope I have answered your query correctly.
Back to top
View user's profile Send private message
aklima

New User


Joined: 25 Nov 2005
Posts: 18
Location: uae

PostPosted: Thu Dec 08, 2005 8:00 am    Post subject: Re: Running a CICS transaction from Batch program
Reply with quote

well according to me u have answer to ques which is of vice versa kind.i mean how to shoot a batch program from a cics region.

if i m wrong do let me know
aklima
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Thu Dec 08, 2005 8:35 am    Post subject: Re: Running a CICS transaction from Batch program
Reply with quote

Hi aklima,

You are right. Thanks for telling this information at the right time.

I will try to give the correct solution.
Back to top
View user's profile Send private message
aklima

New User


Joined: 25 Nov 2005
Posts: 18
Location: uae

PostPosted: Thu Dec 08, 2005 5:48 pm    Post subject: query of same kind
Reply with quote

hi just like shooting a batch pgm from cics region we do have the same thing in cobol. i mean how to run jcl pgm via cobol pgm?
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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


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