Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 7315

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 SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts how to mask the phone number kumarinfy DB2 4 Mon Apr 03, 2017 5:23 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us