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
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
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
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.