IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

LOAD a hard coded value in SYSPUNCH


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Daniel Prosser

New User


Joined: 05 Nov 2010
Posts: 57
Location: Amsterdam

PostPosted: Fri Nov 09, 2012 7:52 pm
Reply with quote

Hi,

I have what I think must be a pretty simple request, yet I'm finding it hard to get it done.

I have changed a table definition - added a sequence number to the primary identifier.

I want to load the data (from the old definition) and assign the value 1 to this sequence number.

I know I could SORT the data and add in the value 1 for the SYSP to pick up which will work fine, but it is going to get much more complicated when I have to load the child tables so I would rather try and do it within the LOAD syspunch.

Is it possible?

Dan. icon_rolleyes.gif
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Nov 12, 2012 10:52 am
Reply with quote

Hi Dan,

Loading a constant value into a column in DB2 table using a standard load utility is not possible. But, if you have "Utilities Enhancement Tool V2.1", its possible. Check this link.

If you have BMC Load utility, you can specify the below(VALUE option) in the field specification.
Code:
,ACTIVITY_FLAG  VALUE('I')     


Thanks,
Sushanth
Back to top
View user's profile Send private message
Daniel Prosser

New User


Joined: 05 Nov 2010
Posts: 57
Location: Amsterdam

PostPosted: Mon Nov 12, 2012 1:19 pm
Reply with quote

Thanks Sushanth, I guess I'll be sorting the file.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Unload and Load ISPF Table TSO/ISPF 4
No new posts Load new table with Old unload - DB2 DB2 6
No new posts How to load to DB2 with column level ... DB2 6
No new posts REASON 00D70014 in load utility DB2 6
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top