IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to write jcl for number of rows in a table


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
vijay sidaraddi

New User


Joined: 11 Oct 2014
Posts: 1
Location: India

PostPosted: Sat Oct 11, 2014 4:15 pm
Reply with quote

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;
/*
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sat Oct 11, 2014 5:08 pm
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
Search our Forums:

Back to Top