Different ways of calling a program



Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

Different ways of calling a program

Postby pulsar22 » Thu Nov 14, 2013 2:32 pm

Hi,
What are the different ways in which we can call a program from CICS program other than the ones mentioned below:

XCTL
LINK
Mentioning the transaction ID in return command.
pulsar22
 
Posts: 34
Joined: Mon Sep 09, 2013 12:39 pm
Has thanked: 14 times
Been thanked: 0 time

Re: Different ways of calling a program

Postby Mickeydusaor » Fri Nov 15, 2013 9:43 pm

start, return
User avatar
Mickeydusaor
 
Posts: 29
Joined: Fri Feb 24, 2012 11:24 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Different ways of calling a program

Postby Robert Sample » Fri Nov 15, 2013 9:52 pm

You can also use the language CALL statement.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Different ways of calling a program

Postby c62ap90 » Sun Nov 17, 2013 5:14 am

   EXEC CICS   XCTL   {transfer control to another program with no return}
         Program   (xxxxxxxx)
         Commarea   (commarea)
         Length   (length)
   END-EXEC.

   EXEC CICS   LINK   {calls another program and returns to current program}
         Program   (xxxxxxxx)
         Commarea   (commarea)
         Length   (length)
   END-EXEC.
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: Different ways of calling a program

Postby NicC » Sun Nov 17, 2013 3:24 pm

c62ap90,

Those 2 methods were mentioned in the original post. OP wants OTHER ways of calling a program.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Different ways of calling a program

Postby c62ap90 » Sun Nov 17, 2013 9:07 pm

Hey NicC...

I just posted the "full" EXEC in case others want to learn from the format since this is a forum for learning. It will help in future searches too.

If you think it will not be helpful to anyone, then delete my posts! Thanks.
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: Different ways of calling a program

Postby Ed Goodman » Mon Nov 18, 2013 7:59 pm

TDQ program name to run when records show up in the queue
Batch program starting transaction
(never did it, but does CICS have something like IMS's BMP?)
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: Different ways of calling a program

Postby Quasar » Thu Nov 28, 2013 9:53 pm

Hi,

CICS allows you to write foreground as well as background tasks.

Foreground Programs
In an application, there are a number of options like Inquiry/Add/Update/Delete screens under one facility/main menu. In CICS, you'd XCTL from the Main-Menu program to the Inquiry/Add/Update/Delete programs.

If you had to invoke a sub-program, the caller wants the control back, you LINK PROGRAM(WS-SUB-PROGRAM) and RETURN. Now, lots of CICS screens have date fields. The date entered has got to be a valid date. So, a CICS application may LINK to the date-validation program, every-time a date check is required. The date routine is just a helper module and the main program expects the control back, so it makes sense to LINK to it.

START'ed tasks
When a CICS transaction does typical batch-style processing of big amounts of data, you create it as a CICS background task(instead of a foreground). CICS runs background tasks at a lower-priority. CICS background tasks are always START'ed.

Thanks.
Quasar
Quasar Chunawala,
Software Engineer, Lives at Borivali, Mumbai
User avatar
Quasar
 
Posts: 102
Joined: Wed Nov 10, 2010 7:11 pm
Location: Borivali, Mumbai
Has thanked: 13 times
Been thanked: 2 times


Return to CICS

 


  • Related topics
    Replies
    Views
    Last post