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
 

 

Query regarding Check data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
rexx77

New User


Joined: 14 Apr 2008
Posts: 73
Location: Mysore

PostPosted: Mon Dec 14, 2009 7:42 pm    Post subject: Query regarding Check data
Reply with quote

Greetings.

I wanted to run check data utility on a particular table which is in check pending mode.

I am using the following JCL to run the check data.

Code:

//STEP1 EXEC DSNUPROC,UID='ABCDEF',SYSTEM='XXXX'
//SYSUDUMP DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//SYSIN  DD *
CHECK DATA TABLESPACE XXXXXX.XXXXXX
 FOR EXCEPTION IN SCHEMA.TABLENAME USE SYSERR
 DELETE NO
/*


i wanted to see the records which does not satisfy the constraint check in a dataset, how to modify the above jcl control card.

I have created a file USERID.SYSERR but it is searching for USERID.SYSERR table. Even i know USE CLause will search for table only but i cant create any table for this purpose.

I would appreciate if some one out there has any ideas
Back to top
View user's profile Send private message

sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Tue Dec 15, 2009 11:46 am    Post subject:
Reply with quote

Greetings rexx77,

Quote:
I wanted to see the records which does not satisfy the constraint check in a dataset

Sorry to break you the bad news. CHECK utility doesn't check data in a dataset.

Quote:
I have created a file USERID.SYSERR but it is searching for USERID.SYSERR table. Even i know USE CLause will search for table only but i cant create any table for this purpose.

Why?

Quote:
I would appreciate if some one out there has any ideas

You can write a program to CHECK your check constraints using your input dataset.
OR
Create a exception table.
Run CHECK utility.
OR
Make plans to alter your batch programs so that only valid data is loaded into the table.

Sushanth
Back to top
View user's profile Send private message
rexx77

New User


Joined: 14 Apr 2008
Posts: 73
Location: Mysore

PostPosted: Tue Dec 15, 2009 7:38 pm    Post subject:
Reply with quote

Thanks Sushanth...

Just out of curiosity, i wanted to know is there any impact in creating exception table?....

I dont have any idea of exception tables, i will go through the literature.. I will get to back to this forum when i have a doubt.

Many thanks....
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Tue Dec 15, 2009 7:52 pm    Post subject:
Reply with quote

rexx77,

Quote:
Just out of curiosity, i wanted to know is there any impact in creating exception table?....


Impact hmmm. Yes, one additional object in the subsystem.

Quote:
I dont have any idea of exception tables, i will go through the literature.. I will get to back to this forum when i have a doubt.

Good.


Sushanth
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am


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