Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Invoking DCMT from user programs

93 views
Skip to first unread message

Martin Wieland

unread,
Nov 9, 2001, 6:03:00 AM11/9/01
to
Dear all,

I am trying to produce a COBOL batch program that calls RHDCMT00. I know this issue has been discussed more than one here, but I couldn't find the answers that I need... Any help will be appreciated!

I use a standard COBOL DC-BATCH program. Does the program have to be an IDMS progam (let alone a DC program) in the first place?
In my program I simply call RHDCMT00 using two workrecords as decribed in the manual. My call results in a 0C6 abend, reason code 6. I have tried every combination of RMODE/AMODE (currently 31/ANY), tried to make the call NODYNAMIC, put my program in a APF-authorized library: nothing works. I keep getting these 0C6 abends.

Any clues?

Thanks in advance!

Martin Wieland
Neckermann BV

Claude F

unread,
Nov 9, 2001, 9:52:24 AM11/9/01
to
Martin,

You have to use the UCFBATCH program to execute DCMT (or RHDCMT00)
from a batch job. You can get fancier, but why ?

I would suggest you create a file where you put all your DCMT commands
and pass that file to a subsequent step in your job, which would be
running UCFBATCH.

It should be simple, unless you have something else in mind or need
something special.

Claude Ferland
Ind. Contractor

Cynthia Bonnan

unread,
Nov 9, 2001, 10:26:59 AM11/9/01
to
Martin,
I am working on the same thing. But I have an assembler program that calls RHDCMT00. It works fine to issue a 'DCMT D STAT AREA' command. I'll give it to you if you want it. Are you going to link this into Exit 13 in RHDCUXIT by any chance? I sure am having problems with that.
Cindy Bonnan
(312)322-4440

Chris Hoelscher

unread,
Nov 9, 2001, 10:54:23 AM11/9/01
to
>> You have to use the UCFBATCH program to execute DCMT (or RHDCMT00)
from a batch job. You can get fancier, but why ?

well, not quite - you CAN link to RDCMT00 you should NOTuse the keyword
"DCMT" in the input line - just the comand itself. That has caued many
(including me) problems in the past.

just a suggestion


Chris Hoelscher
IDMS Database Administrator
Humana Inc
500 West Main Street
NCT-20
Louisville KY 40202
502-580-2538

http://members.home.net/debhoelscher
the diary of Megan Kay Hoelscher
updated weekly

Kevin J Gardner

unread,
Nov 9, 2001, 11:41:50 AM11/9/01
to
I don't think you can call RHDCMT00 from batch programs.

The System Tasks and Operator Commands manual says you should use the #LINK
macro to invoke RHDCMT00.

This is an online DML statement, DC-BATCH programs can only perform a
subset of the online DML statements,
i.e. queue processing.

0 new messages