How to write my own started task

General discussion on the JZOS batch launcher and toolkit
Post Reply
MichaelLueghausen
Posts: 5
Joined: Fri Feb 11, 2005 5:46 am
Location: Germany

How to write my own started task

Post by MichaelLueghausen »

Hi,

my question is not directly related to JZOS, but i read the term "started task" in some of the topics in the JZOS forum.
I have the task to write a programm in COBOL which should run as started task. One of the needs is that the programm must react to the console commands start, stop and modify. Another need is that the programm must be able to receive commands/requests in any form from other programs.

Is there anybody who could give me some hints on how to program that? Any kinds of hints are welcome (example code, references to literature)

Thanks,
Michael
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

From COBOL, you'll have to call either Assembler or C:

1) From Assembler, you use EXTRACT and QEDIT macros to receive START and MODIFY commands, and WTO to write console messages. See the "MVS Programming Authorized Assembler Services Guide" Chapter 2.3 and 7.2.

2) From C, you can use the __console2() api
Post Reply