Tips and Tricks > Tips and Tricks
Proof of Concept - Archiving the z/OS SYSLOG With ARSYSPIN
(1/1)
Ed_Arnold:
On my z/OS sandbox system I wanted to prove that I could archive the z/OS console log into CMOD with ARSYSPIN.
Here's the started proc JCL:
//IEFPROC EXEC PGM=ARSYSPIN,REGION=0M
//STEPLIB DD DISP=SHR,DSN=ARS.ARSV850.SARSLOAD
// DD DISP=SHR,DSN=ACIF.V4R3M0.SAPKMOD1
// DD DISP=SHR,DSN=DSN.DB2VA10.SDSNEXIT
// DD DISP=SHR,DSN=DSN.DB2VA10.SDSNLOAD
// DD DISP=SHR,DSN=DSN.DB2VA10.SDSNLOD2
//ARSBIN DD PATH='/usr/lpp/ars/V8R5M0/bin'
//DSNAOINI DD PATH='/usr/lpp/ars/V8R5M0/config/cli.ini'
//SYSIN DD DUMMY,DCB=(LRECL=80,BLKSIZE=80,RECFM=FB)
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//CEEDUMP DD SYSOUT=*
//ARSYLIST DD SYSOUT=*
//*RSYPARM DD DISP=SHR,DSN=USER.PRIVATE.PARMLIB(ARSYP850)
//ARSYPARM DD DISP=SHR,DSN=USER.PRIVATE.PARMLIB(CONSLOGA)
Here's the contents of ARSYPARM:
applgroup="MVSSYSLOG-AG"
* appl="NODXANSI2"
*selform=(NODX2)
*reportid=NODX2
outsep=no
jesclass=L
capdskeep=no
jobbreak=yes
maxsfc=1
maxdorm=10
*temppath=/u/odadmin
temppath=/ars/codwekcache
tempunit=vio
odhost=zos1.arnold.ibm.com
odinstance=arch850
oduser=odadmin
oduserpw=password
At midnight every night a "W L" is issued. This is the only output written to class L.
ARSYSPIN then reads this in and archives it, just as expected.
Side note: /ars/codewekcache is a TFS, works just great
Ed
Ed_Arnold:
Oops - can't upload a .zip file so I renamed it to .txt. Rename it back to .zip and then unzip.
Ed
Ed_Arnold:
Had a query about this topic, tried to download the attached file, nothing worked.
Reinvented the wheel, try this:
PARMLIB member:
applgroup="MVSSYSLOG-AG"
appl="MVSCONSLOG1"
*selform=(NODX2)
*reportid=NODX2
outsep=no
jesclass=L
capdskeep=yes
dsnpfx=ARS.ARSYSPED
jobbreak=yes
maxsfc=1
maxdorm=10
*temppath=/u/odadmin
temppath=/ars/codwekcache
tempunit=vio
odhost=n.m.o.p
odinstance=arch10
oduser=odadmin
oduserpw=blahblah
//IEFPROC EXEC PGM=ARSYSPIN,REGION=0M
//STEPLIB DD DISP=SHR,DSN=ARS.ARSV1010.SARSLOAD
// DD DISP=SHR,DSN=ARS.ARSV1010.USERLOAD
// DD DISP=SHR,DSN=DB2.V12R1M0.SDSNEXIT
// DD DISP=SHR,DSN=DB2.V12R1M0.SDSNLOAD
// DD DISP=SHR,DSN=DB2.V12R1M0.SDSNLOD2
//ARSBIN DD PATH='/usr/lpp/ars/V10R1M0/bin'
//DSNAOINI DD PATH='/usr/lpp/ars/V10R1M0/config/cli.ini'
//SYSIN DD DUMMY,DCB=(LRECL=80,BLKSIZE=80,RECFM=FB)
//CEEDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//ARSYLIST DD SYSOUT=*
//ARSYPARM DD DISP=SHR,DSN=USER1.PRIVATE.PARMLIB(ARSYSPED)
Temp.zip. It's a zip file of a local server which has the defs.
Ed
Justin Derrick:
Hey Ed. I just enabled the upload of .zip files. You can edit your post and try again. :)
-JD.
Ed_Arnold:
--- Quote from: Justin Derrick on February 25, 2021, 07:50:52 AM ---Hey Ed. I just enabled the upload of .zip files. You can edit your post and try again. :)
-JD.
--- End quote ---
You da man. Done.
Ed
Navigation
[0] Message Index
Go to full version