I’m trying to use the Object Handler in batch (z/OS, NAT 426) to unload objects using SYSTRANS. Here is the example syntax right out of the manual:
SYSOBJH SYSTRANS EXECUTE UNLOAD N FROM LIB1 NAME ETID END
I modified it to this:
SYSOBJH SYSTRANS EXECUTE UNLOAD N FROM CTLISJT * ETID END
RC=40 (Doesn’t like ‘ETID’)
Removed ‘ETID’ – RC=40 (Doesn’t like ‘END’)
Removed ‘END’ – RC=40 (Command incomplete)
Anyone have any clues as to what this syntax should be?
You really want it in (ancient) SYSTRANS format? I can offer plenty of examples in (the newer) SYSOBJH format.
Any format will do. I have to load NAT for Windows with the z/OS prod libraries for NATURAL Engineer. I’m experimenting for the best way to do that. Any examples you have are welcome. Thanks!
You can specify multiple UNLOAD cards in a single invocation. The WHERE TRANSFER clause is necessary when spanning hardware platforms.
Here’s a typical example, unloading an entire library.
//CMSYNIN DD *
UNLOAD * LIB libname OBJTYPE N WHERE TRANSFER
And a few more individual situations:
UNLOAD * LIB libname OBJTYPE N NATTYPE GLA WHERE TRANSFER * only data areas
UNLOAD * LIB libname OBJTYPE D WHERE TRANSFER * only DDMs
UNLOAD object LIB libname OBJTYPE N WHERE TRANSFER * specific module
Many thanks to Ralph and Matthias!