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 Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
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
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


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