Can we write a module which can be used both in batch and..
-
- 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..
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.
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
- Posts: 843
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Can we write a module which can be used both in batch an
only if the module does not use any cics facilityCan we write a module which can be used both in batch and CICS? If yes, can you please guide me on this?
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
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

-
- 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
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 ?
Re: Can we write a module which can be used both in batch an
Have you googled or asked your support?
Regards
Nic
Nic
- enrico-sorichetti
- Global Moderator
- Posts: 843
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Can we write a module which can be used both in batch an
it is not a feature, just applying some reasonable logic.Is there some example of this feature available ?
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
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

- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Can we write a module which can be used both in batch an
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.
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