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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 1 Wed Jul 26, 2017 7:35 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts compare 2 rows within the same file ram_vizag SYNCSORT 7 Wed Jun 14, 2017 12:34 am


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