Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
can we hardcode a value in db2 load card instead of position

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

Active User


Joined: 21 Aug 2008
Posts: 112
Location: hyd

PostPosted: Wed Feb 28, 2018 11:04 pm    Post subject: can we hardcode a value in db2 load card instead of position
Reply with quote

HI All,

Can we hard code a value instead of giving position?

I have a input file which needs to be loaded into a db2 table of which only few columns to be loaded from file and remaining columns to be hard coded( instead of mentioning starting/ending positions of input file) ?

is this possible and may I know how?
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2299
Location: NY,USA

PostPosted: Thu Mar 01, 2018 1:01 am    Post subject:
Reply with quote

Quote:
I have a input file which needs to be loaded into a db2 table of which only few columns to be loaded from file and remaining columns to be hard coded( instead of mentioning starting/ending positions of input file) ?


Can you not able to produce the load DS by using DFSORT , just take the input and BUILD it according to your syspunch and do a load?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Mar 01, 2018 1:54 am    Post subject:
Reply with quote

ram_vizag wrote:
is this possible and may I know how?
Ram,

Take a look at the CONSTANT keyword in the LOAD statement. This might be possible if your DB2 version allows it.
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 IEBCOPY - wild-card for member copies??? JPVRoff JCL & VSAM 1 Fri Nov 15, 2019 3:58 am
No new posts LOAD JCL for db2 table, taking too lo... Somnath Giri DB2 5 Mon Oct 14, 2019 3:35 pm
No new posts Create Dynamic Sort card with Omit co... balaji81_k DFSORT/ICETOOL 9 Thu Sep 26, 2019 10:06 pm
No new posts position, start pos, length of column... juares castro SYNCSORT 14 Fri Jun 21, 2019 8:47 pm
No new posts Send text at cursor position on an IS... Domenic Ailati CLIST & REXX 10 Sun Jun 02, 2019 7:34 am

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