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
 

 

Online transaction invoked from Batch job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 12:16 pm    Post subject: Online transaction invoked from Batch job
Reply with quote

Hi,

I have a requirement in which i have to trigger a online transaction from a batch. Could you let me know how this can be achieved?

Thanks in Advance.
Back to top
View user's profile Send private message

Garry Carroll

Active Member


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

PostPosted: Tue Jun 23, 2009 12:19 pm    Post subject:
Reply with quote

It would be helpful if you could enlighten us as to what type of online transaction you want to trigger. Today is not psychic day and I left my clairvoyance hat at home....

CICS? IMS ? other?

Garry.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 12:20 pm    Post subject:
Reply with quote

Its a CICS transaction.
Back to top
View user's profile Send private message
Garry Carroll

Active Member


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

PostPosted: Tue Jun 23, 2009 12:44 pm    Post subject:
Reply with quote

from the CICS manuals @ http://publib.boulder.ibm.com/infocenter/cicsts/v3r1/index.jsp?topic=/com.ibm.cics.ts31.doc/dfha6/dfha63d.htm , assuming you have console defined in CICS:

Code:
//IEFBR14 JOB (accounting information),CLASS=A,MSGCLASS=A,MSGLEVEL=1,...,...
//*
//*  Sample JOB to submit CICS commands using CONSNAME(INTERNAL)
//*
//IEFBR     EXEC PGM=IEFBR14
// F CICSRUN,'CEMT INQ TER'
// F CICSRUN,'CEMT INQ TAS'
// F CICSRUN,'CEMT SET TER(L77C) ACQ'
//


Garry.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 12:45 pm    Post subject:
Reply with quote

Thanks for the quick reply. I will try it and let you know.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 1:09 pm    Post subject:
Reply with quote

How we can confirm whether Console is defined in CICS?
Back to top
View user's profile Send private message
Garry Carroll

Active Member


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

PostPosted: Tue Jun 23, 2009 1:53 pm    Post subject:
Reply with quote

Logon to CICS and enter

Code:
CEDA V TYPETERM(CONSOLE) G(*)


You can then check to see if any console found is installed by issuing
Code:
CEMT I TER(console-id)



Alternatively, submit the IEFBR14 job to issue a CEMT INQUIRE. If it works, the console is defined.

Garry.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 2:13 pm    Post subject:
Reply with quote

In my case, there is no console found. I think i have to check with CICS admin regarding this.


Thanks for your time Garry.
Back to top
View user's profile Send private message
Garry Carroll

Active Member


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

PostPosted: Tue Jun 23, 2009 2:16 pm    Post subject:
Reply with quote

Glad to be of help. I would expect that your CICS admin should have a console defined so that operations could issue commands.

Garry.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Tue Jun 23, 2009 5:11 pm    Post subject:
Reply with quote

One thing to be aware of -- the command being issued is not part of your job stream; for example you cannot execute two steps and then have the command issued. As soon as your job passes the JES converter/interpreter, the command is issued to the CICS region.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts How to calculate an specific transact... lind sh CICS 2 Tue Sep 13, 2016 9:20 pm


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