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
 

 

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: 186
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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 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 Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am


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