MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Data unload irrespective of filter condition

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
SMS
Beginner


Joined: 16 Oct 2005
Posts: 53
Topics: 24

PostPosted: Wed Jul 19, 2006 7:01 am    Post subject: Data unload irrespective of filter condition Reply with quote

Hi All,

Could you please help me out in solving the following issue.

My requirement is unload specific columns from a table based on
a condition and for that I have constructed the below job. But it unloads
all the columns and rows from the table irrespective of the control card.

Code:

//UTIL EXEC DSNUPROC,SYSTEM=DSN,UID='TMSSMT',UTPROC=''
//*
//**********************************************
//*
//*  GENERATING JCL FOR THE UNLOAD UTILITY
//*  DATE:  07/18/06          TIME:  23:17:03
//*
//**********************************************
//*
//DSNUPROC.SYSREC DD DSN=TMSSMT.TEST,
//     DISP=(OLD,CATLG,CATLG),
//     SPACE=(CYL,(20,20),,,ROUND),
//     UNIT=SYSDA
//DSNUPROC.SYSPUNCH DD DSN=TMSSMT.TEST2,
//     DISP=(OLD,CATLG,CATLG),
//     SPACE=(CYL,(20,20),,,ROUND),
//     UNIT=SYSDA
//DSNUPROC.SYSIN    DD  *
  UNLOAD  TABLESPACE SCSCORTS.SCSCR01D
   FROM TABLE IAMA.SCSCROE_JAN    (Field1, Field2, Field3)
            WHEN (Field1 = 12345)
//


Regards,
SMS
_________________
Regards,
SMS
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12384
Topics: 75
Location: San Jose

PostPosted: Wed Jul 19, 2006 7:12 am    Post subject: Reply with quote

SMS,

why not use DSNTIAUL ? Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?p=3099#3099

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
videlord
Beginner


Joined: 09 Dec 2004
Posts: 147
Topics: 19

PostPosted: Wed Jul 19, 2006 6:32 pm    Post subject: Reply with quote

What the version of your DB2?
Can you paste the unloaded SYSPUNCH?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group