galger66
asked on
I would like to have this error log -- In some sort of readable report on screen - to look through and format.. Need the best way to perform this.
This is 1 process generated in large Log -- The common part of each line is the "PNUM=####"
==========LOG============= ========== =====
STAR=20060330 14:00:06|PNAM=mvs|SUBM=cda dmin@ceftp 5|SNOD=A14 CON00|RECI =QCEX|RECC =CAEV|PNUM =1220|STAT =PE|MSGT=T CQ queue change from WAIT to EXEC, status PE.
STAR=20060330 14:00:06|PNUM=1220|SSTA=20 060330 14:00:06|STRT=20060330 14:00:06|STOP=20060330 14:00:06|STPT=20060330 14:00:06|SELA=00:00:00|SNO D=A14CON00 |RECI=SSTR |RECC=CAEV |LNOD=P|PN OD=ceftp5| MSGT=Sessi on started, SNODE:A14CON00 |LCLP=172.22.45.174, PORT=37944|RMTP=167.113.72 .1, PORT=1364|FRWL=N
STAR=20060330 14:00:06|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:06|STRT=20060330 14:00:06|STOP=20060330 14:00:06|STPT=20060330 14:00:06|SELA=00:00:00|SUB M=cdadmin@ ceftp5|SNO D=A14CON00 |CCOD=0|RE CI=PSTR|RE CC=CAPR|LN OD=P|PNOD= ceftp5|MSG I=XSMG200I |MSST=Proc ess started, process:1220 name:mvs SNODE:A14CON00|CLAS=1|PRTY =10
STAR=20060330 14:00:06|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:06|STRT=20060330 14:00:06|SUBM=cdadmin@ceft p5|SNOD=A1 4CON00|REC I=LSST|REC C=CAEV|MSG T=Local Step started.|FROM=P|RSTR=N|SFI L=/data/cd admin/ceun ix/ndmfile s/pipasi01 /P.TPSP02T R.SORTIN.P IP02.NDMFI LE|DFIL=P. TPSP02TR.S ORTIN.PIP0 2.NDMFILE| SNAM=step0 1
STAR=20060330 14:00:06|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:06|STRT=20060330 14:00:06|STOP=20060330 14:00:06|STPT=20060330 14:00:06|SELA=00:00:00|SUB M=cdadmin@ ceftp5|SNO D=A14CON00 |CCOD=0|RE CI=CTRC|RE CC=CAPR|MS GI=SCPA000 I|MSST=Cop y step successful.|STDL=Thu Mar 30 14:00:06 2006|CSDS=Thu Mar 30 14:00:06 2006|LCCD=0|LMSG=SCPA000I| OCCD=0|OMS G=SCPA000I |PNAM=mvs| PNUM=1220| SNAM=step0 1|SBND=cef tp5|SBID=c dadmin|PNO D=ceftp5|S NOD=A14CON 00|LNOD=P| FROM=P|XLA T=Y|SCMP=N |ECMP=Y|EC PR=42.42|E CTP=ECZ|ZL VL=1|ZWIN= 13|ZMEM=4| OERR=N|CKP T=Y|LKFL=N |RSTR=N|RU SZ=16000|P ACC=|SACC= |PPMN=|SFI L=/data/cd admin/ceun ix/ndmfile s/pipasi01 /P.TPSP02T R.SORTIN.P IP02.NDMFI LE|SDS1= |SDS2= |SDS3= |SBYR=132|SFSZ=162|SRCR=2| SBYX=56|SR UX=1|SVSQ= 0|SVCN=0|S VOL=|DFIL= P.TPSP02TR .SORTIN.PI P02.NDMFIL E|PPMN=|DD S1=R|DDS2= |DDS3= |DBYW=160|DRCW=2|DBYX=56|D RUX=0|DVSQ =0|DVCN=0| DVOL=|ICRC =N|PCRC=N
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:06|STRT=20060330 14:00:06|SUBM=cdadmin@ceft p5|SNOD=A1 4CON00|REC I=LSST|REC C=CAEV|MSG T=Local Step started.|SNAM=step02
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:06|STRT=20060330 14:00:06|STOP=20060330 14:00:07|STPT=20060330 14:00:07|SELA=00:00:01|SUB M=cdadmin@ ceftp5|SNO D=A14CON00 |CCOD=0|RE CI=IFED|RE CC=CAPR|LN OD=P|PNOD= ceftp5|MSG I=XSMG409I |MSGT=If step condition met.|SNAM=step02|MSST=An if condition statement tested true.
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:07|STRT=20060330 14:00:07|SUBM=cdadmin@ceft p5|SNOD=A1 4CON00|REC I=LSST|REC C=CAEV|MSG T=Local Step started.|SNAM=step03
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:07|STRT=20060330 14:00:07|STOP=20060330 14:00:07|STPT=20060330 14:00:07|SELA=00:00:00|SUB M=cdadmin@ ceftp5|SNO D=A14CON00 |CCOD=0|RE CI=RJED|RE CC=CAPR|LN OD=P|PNOD= A14CON00|M SGI=XSMG40 0I|MSGT=RU NJOB step ended. REMOTE NODE:A14CON00 RC :0 Child pid:13343 |SOPT=/data/cdadmin/ceunix /local/bin /eob_third level_scri pts/ndmsta tus.sh P.TPSP02TR.SORTIN.PIP02.ND MFILE pipasi01 SUCCESSFUL COPY|PACC=|SACC=|PNAM=mvs| PNUM=1220| FROM=P|LNO D=P|SNAM=s tep03|SBND =ceftp5|SB ID=cdadmin |MSST=A user run job step completed successfully.0
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:07|STRT=20060330 14:00:07|SUBM=cdadmin@ceft p5|SNOD=A1 4CON00|REC I=LSST|REC C=CAEV|MSG T=Local Step started.
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:07|STRT=20060330 14:00:07|SUBM=cdadmin@ceft p5|SNOD=A1 4CON00|REC I=LSST|REC C=CAEV|MSG T=Local Step started.|SNAM=step05
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:07|STRT=20060330 14:00:07|STOP=20060330 14:00:07|STPT=20060330 14:00:07|SELA=00:00:00|SUB M=cdadmin@ ceftp5|SNO D=A14CON00 |CCOD=0|RE CI=IFED|RE CC=CAPR|LN OD=P|PNOD= ceftp5|MSG I=XSMG409I |MSGT=If step condition met.|SNAM=step05|MSST=An if condition statement tested true.
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:07|STRT=20060330 14:00:07|SUBM=cdadmin@ceft p5|SNOD=A1 4CON00|REC I=LSST|REC C=CAEV|MSG T=Local Step started.|SNAM=step06
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:07|STRT=20060330 14:00:07|STOP=20060330 14:00:07|STPT=20060330 14:00:07|SELA=00:00:00|SUB M=cdadmin@ ceftp5|SNO D=A14CON00 |CCOD=0|RE CI=RJED|RE CC=CAPR|LN OD=P|PNOD= A14CON00|M SGI=SRJA00 0I|MSGT=RU NJOB step ended. REMOTE NODE:A14CON00 RC :0 Child pid:0 |PACC=|SACC=|PNAM=mvs|PNUM =1220|FROM =S|LNOD=P| SNAM=step0 6|SBND=cef tp5|SBID=c dadmin|MSS T=C->D RUN JOB function completed successfully.0
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:07|STRT=20060330 14:00:07|SUBM=cdadmin@ceft p5|SNOD=A1 4CON00|REC I=LSST|REC C=CAEV|MSG T=Local Step started.|SNAM=step07
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:07|STRT=20060330 14:00:07|STOP=20060330 14:00:08|STPT=20060330 14:00:08|SELA=00:00:01|SUB M=cdadmin@ ceftp5|SNO D=A14CON00 |CCOD=0|RE CI=IFED|RE CC=CAPR|LN OD=P|PNOD= ceftp5|MSG I=XSMG409I |MSGT=If step condition met.|SNAM=step07|MSST=An if condition statement tested true.
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:08|STRT=20060330 14:00:08|SUBM=cdadmin@ceft p5|SNOD=A1 4CON00|REC I=LSST|REC C=CAEV|MSG T=Local Step started.|SNAM=step08
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:08|STRT=20060330 14:00:08|STOP=20060330 14:00:08|STPT=20060330 14:00:08|SELA=00:00:00|SUB M=cdadmin@ ceftp5|SNO D=A14CON00 |CCOD=0|RE CI=RJED|RE CC=CAPR|LN OD=P|PNOD= A14CON00|M SGI=XSMG40 0I|MSGT=RU NJOB step ended. REMOTE NODE:A14CON00 RC :0 Child pid:13420 |SOPT=/data/cdadmin/ceunix /local/bin /eob_third level_scri pts/ndmsta tus.sh TPSP02NR pipasi01 SUCCESSFUL JOBRUN|PACC=|SACC=|PNAM=mv s|PNUM=122 0|FROM=P|L NOD=P|SNAM =step08|SB ND=ceftp5| SBID=cdadm in|MSST=A user run job step completed successfully.0
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:08|STRT=20060330 14:00:08|SUBM=cdadmin@ceft p5|SNOD=A1 4CON00|REC I=LSST|REC C=CAEV|MSG T=Local Step started.
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:08|STRT=20060330 14:00:08|SUBM=cdadmin@ceft p5|SNOD=A1 4CON00|REC I=LSST|REC C=CAEV|MSG T=Local Step started.|SNAM=step10
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:08|STRT=20060330 14:00:08|STOP=20060330 14:00:08|STPT=20060330 14:00:08|SELA=00:00:00|SUB M=cdadmin@ ceftp5|SNO D=A14CON00 |CCOD=0|RE CI=RJED|RE CC=CAPR|LN OD=P|PNOD= A14CON00|M SGI=XSMG40 0I|MSGT=RU NJOB step ended. REMOTE NODE:A14CON00 RC :0 Child pid:13422 |SOPT=rm /data/cdadmin/ceunix/ndmfi les/pipasi 01/P.TPSP0 2TR.SORTIN .PIP02.NDM FILE|PACC= |SACC=|PNA M=mvs|PNUM =1220|FROM =P|LNOD=P| SNAM=step1 0|SBND=cef tp5|SBID=c dadmin|MSS T=A user run job step completed successfully.0
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122 0|SSTA=200 60330 14:00:06|STRT=20060330 14:00:06|STOP=20060330 14:00:08|STPT=20060330 14:00:08|SELA=00:00:02|SUB M=cdadmin@ ceftp5|SNO D=A14CON00 |CCOD=0|RE CI=PRED|RE CC=CAPR|LN OD=P|PNOD= ceftp5|MSG I=XSMG252I |MSST=Proc ess completed, SNODE:A14CON00
STAR=20060330 14:00:08|PNUM=1220|SSTA=20 060330 14:00:06|STRT=20060330 14:00:06|STOP=20060330 14:00:08|STPT=20060330 14:00:08|SELA=00:00:02|SNO D=A14CON00 |RECI=SEND |RECC=CAEV |LNOD=P|PN OD=ceftp5| MSGT=Sessi on ended, Session Manager shutting down SNODE:A14CON00
============End of log======================= =====
Driven by each PNUM=#### in the log - which is on Multiple lines.
Report should look like this:
====
PNUM=1220
LCCD=0
LMSG=SCPA000I
OCCD=0
OMSG=SCPA000I
PNAM=mvs
SFIL=/data/cdadmin/ceunix/ ndmfiles/p ipasi01/P. TPSP02TR.S ORTIN.PIP0 2.NDMFILE
DFIL=P.TPSP02TR.SORTIN.PIP 02.NDMFILE
STRT=20060330 14:00:06
STOP=20060330 14:00:06
=====
==========LOG=============
STAR=20060330 14:00:06|PNAM=mvs|SUBM=cda
STAR=20060330 14:00:06|PNUM=1220|SSTA=20
STAR=20060330 14:00:06|PNAM=mvs|PNUM=122
STAR=20060330 14:00:06|PNAM=mvs|PNUM=122
STAR=20060330 14:00:06|PNAM=mvs|PNUM=122
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122
STAR=20060330 14:00:07|PNAM=mvs|PNUM=122
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122
STAR=20060330 14:00:08|PNAM=mvs|PNUM=122
STAR=20060330 14:00:08|PNUM=1220|SSTA=20
============End of log=======================
Driven by each PNUM=#### in the log - which is on Multiple lines.
Report should look like this:
====
PNUM=1220
LCCD=0
LMSG=SCPA000I
OCCD=0
OMSG=SCPA000I
PNAM=mvs
SFIL=/data/cdadmin/ceunix/
DFIL=P.TPSP02TR.SORTIN.PIP
STRT=20060330 14:00:06
STOP=20060330 14:00:06
=====
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Keep in mind that thing command ozo gave you outputs only what you have listed.
It will drop lines like RECI= and what not. In any case, to make it throw in the =====
that you show to differentiate the record groups, you might want to throw in another tr
command:
tr '\n' '\n=====' < logfile | tr '|' '\n' | egrep '(^PNUM|LCCD|LMSG|OCCD|OMS G|PNAM|SFI L|DFIL|STA RT|STOP)='
If you want all of the tokens, just drop the egrep.
--brian
It will drop lines like RECI= and what not. In any case, to make it throw in the =====
that you show to differentiate the record groups, you might want to throw in another tr
command:
tr '\n' '\n=====' < logfile | tr '|' '\n' | egrep '(^PNUM|LCCD|LMSG|OCCD|OMS
If you want all of the tokens, just drop the egrep.
--brian
I guess you simply want:
tr '|' '\n' < logfile
tr '|' '\n' < logfile
or you could open it up in excel as a CSV file (and specifying | as the seperator)
ozo answered the question first and his answer was complete enough to warrant all of the points.
--brian
--brian
ASKER
Thanks for all of your help -- not abondoned.. I have been just very busy.. Thanks!!! galger66
ASKER