Code: |
STATUS AS OF (DATE & TIME OF THE JOB RUN) ************************************************************* Total Number Requests sent for today : < XXXX - count from file 1> Total Number of Request completed : <XXXX - count from file 2> Percentage of completion : <Percentage calculated > I tried using the JoinKey option but I am facing with the following error ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 05:10 ON FRI MAY JOINKEYS FILE=F1,FIELDS=(9,1,A) $ ICE005A 0 STATEMENT DEFINER ERROR |
Code: |
ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 09:33 ON MON MAY JOINKEYS F1=REQ,FIELDS=(80,1,A) $ ICE005A 0 STATEMENT DEFINER ERROR JOINKEYS F2=RES,FIELDS=(80,1,A) $ ICE005A 0 STATEMENT DEFINER ERROR REFORMAT FIELDS=(F1:1,10,F2:1,10) $ ICE005A 0 STATEMENT DEFINER ERROR SORT FIELDS=COPY OUTREC OVERLAY=(20:1,10,ZD,SUB,9,10,ZD,M11,LENGTH=10, 30:(1,10,ZD,MUL,+50),DIV,+100,M11,LENGTH=10) OUTFIL NULLOFL=RC12,INCLUDE=(20,10,ZD,EQ,30,10,ZD) $ ICE007A F SYNTAX ERROR ICE056A 0 SORTIN NOT DEFINED ICE751I 0 C5-K90013 C6-K90013 C7-K90000 C8-K42135 E7-K24705 ICE052I 3 END OF DFSORT |
Code: |
//STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD DSN=Your 1 recod count total req file,DISP=SHR // DD DSN=Your 1 recod count completed file,DISP=SHR //SORTOUT DD SYSOUT=* //SYSIN DD * INREC IFTHEN=(WHEN=INIT,BUILD=(1,6,X,6X'00',SEQNUM,1,ZD,80:X)), IFTHEN=(WHEN=(14,1,ZD,EQ,2),OVERLAY=(8:1,6)) SORT FIELDS=(7,1,CH,A),EQUALS SUM FIELDS=(8,4,BI,12,2,BI) OUTREC OVERLAY=(15:X,1,6,ZD,DIV,+2,M11,LENGTH=6,X, (8,6,ZD,MUL,+100),DIV,1,6,ZD,MUL,+100,EDIT=(TTT.TT)) OUTFIL NULLOFL=RC4,INCLUDE=(8,6,CH,GE,16,6,CH), BUILD=(25:C'STATUS AS OF ',DATE1(/),C' AT ',&TIME,/,25:35C'*',//, 05:C'TOTAL NUMBER REQUESTS SENT FOR TODAY : ',1,6,/, 05:C'TOTAL NUMBER OF REQUEST COMPLETED : ',8,6,/, 05:C'PERCENTAGE OF COMPLETION : ',23,6,/, 80:X) //* |
karthikeyan wrote: |
Kolusu
Thanks a ton. It works. But I would prefer to have the status report even when the percentage is less than 50%. Only that I need that return code to be set but report to be produced at any level. |
Code: |
//STEP0100 EXEC PGM=SORT //SYSOUT DD SYSOUT=* //SORTIN DD DSN=Your 1 recod count total req file,DISP=SHR // DD DSN=Your 1 recod count completed file,DISP=SHR //SORTOUT DD SYSOUT=* //SETRC DD SYSOUT=* //SYSIN DD * INREC IFTHEN=(WHEN=INIT,BUILD=(1,6,X,6X'00',SEQNUM,1,ZD,80:X)), IFTHEN=(WHEN=(14,1,ZD,EQ,2),OVERLAY=(8:1,6)) SORT FIELDS=(7,1,CH,A),EQUALS SUM FIELDS=(8,4,BI,12,2,BI) OUTREC OVERLAY=(15:X,1,6,ZD,DIV,+2,M11,LENGTH=6,X, (8,6,ZD,MUL,+100),DIV,1,6,ZD,MUL,+100,EDIT=(TTT.TT)) OUTFIL FNAMES=SETRC,NULLOFL=RC4,INCLUDE=(8,6,CH,GE,16,6,CH) OUTFIL BUILD=(25:C'STATUS AS OF ',DATE1(/), C' AT ',&TIME,/,25:35C'*',//, 05:C'TOTAL NUMBER REQUESTS SENT FOR TODAY : ',1,6,/, 05:C'TOTAL NUMBER OF REQUEST COMPLETED : ',8,6,/, 05:C'PERCENTAGE OF COMPLETION : ',23,6,/, 80:X) //* |
Code: |
//SYSIN DD *
INREC IFTHEN=(WHEN=INIT,BUILD=(1,6,UFF,M11,LENGTH=6)), IFTHEN=(WHEN=INIT,BUILD=(1,6,X,6X'00',SEQNUM,1,ZD,80:X)), |
karthikeyan wrote: |
Kolusu
Though we are specifiying the EDIT pattern I am still getting the output percentage rounded. I am not getting the percentage with decimal values. Am I missing something? |
Code: |
STATUS AS OF 2010/08/20 AT 05:01:21 *********************************** TOTAL NUMBER REQUESTS SENT FOR TODAY : 057726 TOTAL NUMBER OF REQUEST COMPLETED : 056010 PERCENTAGE OF COMPLETION : 097.00 |
Code: |
OUTREC OVERLAY=(15:X,1,6,ZD,DIV,+2,M11,LENGTH=6,X, (8,6,ZD,MUL,+100),DIV,1,6,ZD,MUL,+100,EDIT=(TTT.TT)) |
Code: |
OUTREC OVERLAY=(15:X,1,6,ZD,DIV,+2,M11,LENGTH=6,X, (8,6,ZD,MUL,+10000),DIV,1,6,ZD,EDIT=(TTT.TT)) |
output generated using printer-friendly topic mod. All times are GMT - 5 Hours