vijay sidaraddi
New User
Joined: 11 Oct 2014 Posts: 1 Location: India
|
|
|
|
i have more than 100 tables if i want number of rows in each table by submitting JCL here im pasting my JCL , but noluck to get out put , can anyone tell me where im wrong in below JCL
//SYSUIDA JOB (M358045100),'DB2 QUERY COUNT',MSGCLASS=X,CLASS=E,
// NOTIFY=&SYSUID
/*JOBPARM ROOM=C80,S=TSO1,F=SDE
//* RUN THROUGH JCLPREP ON 10/11/2014 BY Vijay
/*JOBPARM R=80
/*XEQ MEM0
/*JOBPARM R=80,S=TSO1
//****************************************************
//* THIS JOB COUNTS THE NUMBER ROWS IN A TABLE *
//****************************************************
//STEP010 EXEC PGM=IKJEFT01,DYNAMNBR=20,REGION=4096K
//*******************************************************************
//STEPLIB DD DSN=SYSD.DB2.D2SB.RUNLIB.LOAD,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSIN DD *
SELECT COUNT(*)
FROM DB2SB.RFV0071D;
/*
//SYSTSIN DD *
DSN SYSTEM(SRSB)
RUN PROGRAM(DSNTIAUL) PLAN(DSNTIAUL) PARMS('SQL') -
LIB('SYSD.DB2.D2SB.RUNLIB.LOAD')
END
/*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//*
//SYSPUNCH DD DSN=SYNTEL.UNLOAD.SYSPUNCH.PUSDSMX,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,5)
//SYSREC00 DD DSN=SYNTEL.DATA.PUSDSMX,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,5)
//SYSIN DD *
SELECT COUNT(*)
FROM DB2SB.RFV0071D;
/* |
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Why don't you talk to your DBA? Tell them you're going to be running batch jobs simply to count rows in tables. See if they like the idea. See if they can already give you something sufficient to provide you with whatever you feel you need to do this for.
Topic locked. Which means you, and Moderators, can reply, but no-one else. Let us know what your DBA(s) think. Just click on the Locked button to reply. |
|