Question & Answer
Question
How do I compile the arsuperm C Language Exit?
Cause
No sample compilation procedure shipped with the product.
Answer
Note: Substitute the dataset names and path names in the following to match your local installation standards.
1. Create an exe file, for example, comp_odexit, which consists of the following
- STEPLIB=$STEPLIB:CBC.SCCNCMP:CEE.SCEERUN:CEE.SCEERUN2
export STEPLIB
_C89_LSYSLIB=$_C89_LSYSLIB:ARS.ARSV841.SARSLOAD:CEE.SCEELKED
export _C89_LSYSLIB
c89 -c -W 'c,dll,define(os390),rent,rostring,long,source,list,Arch(2)' -I"//'ARS.ARSV841.SARSINST'" $1.c > compile.out
c89 -W l,p,map,noer -W l,dll,AMODE=31,map -o $1 $1.o > link.out
rm $1.c
rm compile.out
Note: in 8.4.1 only add the option NOSEQ if using this as a sample to compile arscsxit.h.
2. Execute the following commands from a USS command line which will create a compiled version of arsuperm:
- comp_odexit arsuperm
3. Copy the compiled arsuperm to the exits directory:
- cp arsuperm /usr/lpp/ars/V8R4M1/bin/exits/arsuperm
4. Add APF authorization via the extattr command:
- extattr +a /usr/lpp/ars/V8R4M1/bin/exits/arsuperm
- ls -laEt /usr/lpp/ars/V8R4M1/bin/exits/arsuperm
- -rwxr-xr-x aps-
[{"Product":{"code":"SSQHWE","label":"Content Manager OnDemand for z\/OS"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Server","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"9.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
18 June 2019
UID
swg21459509