Source Output USS files created by CA Endevor SCM through the Type definition cannot be backed out or shipped. To have this alternate file created and to have it available for Package Backout and Ship, you must change the Type definition and Processor. One way to change the processor is to use the CONWRITE and ENUSSUTL utilities in the processor. To use this method, complete the following steps:
By using the ENUSSUTL utility, a backout record and a backout file is created when an action is executed under package processing control against this element. For more information about using the ENUSSUTL utility, see Enable Supported Files for Package Ship.
Note: If you do not intend to back out or ship your source output USS file, you do not need to change your processor or type definition.
Example: CONWRITE and ENUSSUTL in Processor for USS Source Output Files
This example shows how a processor can use the CONWRITE and ENUSSUTL utilities to create back out files and information for USS source output files. Thus enabling the USS files to be shipped. This partial processor uses the CONWRITE utility to create USS output from a CA Endevor SCM element and copy it to a temporary USS file. Then the ENUSSUTL utility copies the USS file to its real name and location. Then the BPXBATCH utility deletes the temporary USS file.
//GUSS PROC USSDIR=’/u/users/endeavor/&C1EN(1,1)&C1S#/’
•
•
•
//***********************************************************
//* Create USS output from endevor element to a temporary USS
//* file and then use ENUSSUTL t0 copy it to its real name
//* and location.
//* Delete the temporary USS file
//* - CONWRITE element.tmp
//* - ENUSSUTL copy element.tmp to element
//* - BPXBATCH delete element.tmp
//***********************************************************
//CONW1 EXEC PGM=CONWRITE,MAXRC=0
//ELMOUT1 DD PATH=’&USSDIR’,
// PATHOPTS=(OWRONLY,OCREAT),
// PATHMODE=(SIRWXU,SIRWXG,SIRWXO)
//CONWIN DD *
WRITE ELEMENT &C1ELMNT255
FROM ENV &C1EN SYSTEM &C1SY SUBSYSTEM &C1SU
TYPE &C1TY STAGE &C1SI
TO DDN ELMOUT1
HFSFILE &C1ELMNT255..TMP
.
//***********************************************************
//ENUSS1 EXEC PGM=ENUSSUTL,MAXRC=4
//INPUT DD PATH=’&USSDIR’
//OUTPUT DD PATH=’&USSDIR’,
// PATHMODE=(SIRWXU,SIRWXG,SIRWXO)
//ENUSSIN DD *
COPY INDD ‘INPUT’ OUTDD ‘OUTPUT’ .
S FILE ‘&C1ELMNT255..tmp
NEWF ‘&C1ELMNT255’
.
//***********************************************************
//BPXB1 EXEC PGM=BPXBATCH,MAXRC=0,COND=(4,LT)
//STDPARM DD *
SH rm -r ‘&USSDIR.&C1ELMNT255..tmp’ ;
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//*
|
Copyright © 2014 CA.
All rights reserved.
|
|