Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to write jcl for number of rows in a table

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to write jcl for number of rows in a table
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Sat Oct 11, 2014 5:08 pm    Post subject: Reply to: how to write jcl for number of rows in a table
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.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts help to replace columns by rows Vikas Maharnawar DFSORT/ICETOOL 8 Tue Mar 06, 2018 3:27 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us