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
 
Partial load a table from production data to test

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

New User


Joined: 22 May 2008
Posts: 56
Location: hyderabad

PostPosted: Mon May 11, 2009 7:01 pm    Post subject: Partial load a table from production data to test
Reply with quote

Hi
I need to load a table from production data to test with some restriction, say that i want only four years of data. For this I tried using when clause in unload, it failed as i was trying to do unload from copy. then i unloaded all data, and tried to use the when clause in the load control card, but again it failed. portion of the control card is given. please suggest the exact syntax.

DSNU000I DSNUGUTC - OUTPUT START FOR UTILITY, UTILID = LOAD01
DSNU005I DSNUGPRW - LOAD DATA INDDN SYSREC LOG NO REPLACE NOCOPYPEND
DSNU005I DSNUGPRW - EBCDIC CCSID(00037,00000,00000)
DSNU005I DSNUGPRW - INTO TABLE "DEVT "."HIST_T "
DSNU005I DSNUGPRW - WHEN WO_OPEN_DT2 >='2003')
DSNU049I DSNUGPRW - INVALID OPERAND ''2003'' FOR KEYWORD 'WHEN'
DSNU005I DSNUGPRW - ( "PARTN_NO " POSITION( 00003:00003) CHAR(00
Back to top
View user's profile Send private message

Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Mon May 11, 2009 11:43 pm    Post subject: Reply to: partial load
Reply with quote

Hi mailsaurabh.tripathi

The usage of "WHEN" has different syntax.

Code:
 WHEN (51) ='D'

Here "(51)" denote the position in the I/P dataset and the 51st position of the I/P dataset must have character "D". Then that record will be loaded to the specified table.

If you post the unload control statement, sometime your problem can be easily solved.

Regards
Raghu
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 Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm

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