Can we write a module which can be used both in batch and..

Customer Information Control System. Middleware and MQ Series.
Post Reply
Harshit Desai
New Member
Posts: 7
Joined: Sat Sep 06, 2014 9:16 pm

Can we write a module which can be used both in batch and..

Post by Harshit Desai »

Hi,

The subject line could not take the full question so I am repeating it here again: Can we write a module which can be used both in batch and CICS? If yes, can you please guide me on this?

Appreciate any help on this.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Can we write a module which can be used both in batch an

Post by enrico-sorichetti »

Can we write a module which can be used both in batch and CICS? If yes, can you please guide me on this?
only if the module does not use any cics facility
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Harshit Desai
New Member
Posts: 7
Joined: Sat Sep 06, 2014 9:16 pm

Re: Can we write a module which can be used both in batch an

Post by Harshit Desai »

Thanks enrico. I was searching for an example of this nature on IBM site but could not find one. Is there some example of this feature available ?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Can we write a module which can be used both in batch an

Post by nicc »

Have you googled or asked your support?
Regards
Nic
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Can we write a module which can be used both in batch an

Post by enrico-sorichetti »

Is there some example of this feature available ?
it is not a feature, just applying some reasonable logic.

1) a CICS program cannot use some BATCH constructs
2) a BATCH program cannot use CICS constructs

at the end You are left with a subroutine/function that satisfies both constraints
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Can we write a module which can be used both in batch an

Post by Robert Sample »

If you are writing COBOL, the program cannot use files (no SELECT, no FD, no OPEN / READ / WRITE / CLOSE statements) and expect to work under CICS. The program cannot use EXEC CICS statement and expect to work under batch. As long as you write your code with the restrictions (there are others -- check the manuals for details), the program can run under CICS and batch. Most sites, however, write two separate modules to allow for customization to the environment.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “CICS, Middleware and MQ Series.”