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
 

 

DBUTIL load parm syntax

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

New User


Joined: 11 Apr 2007
Posts: 10
Location: India

PostPosted: Tue Dec 04, 2007 10:14 pm    Post subject: DBUTIL load parm syntax
Reply with quote

Hi,
We have a job which uses the DBUTIL utility to load an input file to a table

The load parm is as below
Code:

  LOAD DATA LOG NO RESUME YES INDDN SYSREC00 INTO TABLE     
  MUS.T7756_AD_ACCT_PROD                                   
(CDS_MTH_NBR  POSITION (1) SMALLINT ,                       
 CDS_TRAN_ID POSITION (3) CHAR  (11) ,                     
 CDS_YR_NBR POSITION (14) SMALLINT ,                       
 CDS_ACCT_ID POSITION (16) CHAR  (11) ,                     
 ACCT_NBR_DSPL POSITION (27) CHAR  (20) ,                   
 ACCT_OPEN_DATE POSITION (47) DATE EXTERNAL  (10) ,         
 CDS_QUAL_GRP_IND POSITION (57) CHAR  (1) ,
DIR_ACCT_IND POSITION (58) CHAR  (1) )


Now for the last two fileds, CDS_QUAL_GRP_IND and DIR_ACCT_IND i want to insert spaces into them and not the values from the input file.
Please let me know the syntax for the same.
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Dec 04, 2007 10:32 pm    Post subject: Re: DBUTIL load parm syntax
Reply with quote

Samantha Chelikani wrote:
Hi,
We have a job which uses the DBUTIL utility to load an input file to a table

The load parm is as below
Code:

  LOAD DATA LOG NO RESUME YES INDDN SYSREC00 INTO TABLE     
  MUS.T7756_AD_ACCT_PROD                                   
(CDS_MTH_NBR  POSITION (1) SMALLINT ,                       
 CDS_TRAN_ID POSITION (3) CHAR  (11) ,                     
 CDS_YR_NBR POSITION (14) SMALLINT ,                       
 CDS_ACCT_ID POSITION (16) CHAR  (11) ,                     
 ACCT_NBR_DSPL POSITION (27) CHAR  (20) ,                   
 ACCT_OPEN_DATE POSITION (47) DATE EXTERNAL  (10) ,         
 CDS_QUAL_GRP_IND POSITION (57) CHAR  (1) ,
DIR_ACCT_IND POSITION (58) CHAR  (1) )


Now for the last two fileds, CDS_QUAL_GRP_IND and DIR_ACCT_IND i want to insert spaces into them and not the values from the input file.
Please let me know the syntax for the same.


If those 2 fields are defined as "NOT NULL WITH DEFAULT" then all you need to do is change the comma on the ACCT_OPEN_DATE line to a ) and delete the last 2 lines.
Back to top
View user's profile Send private message
Samantha Chelikani

New User


Joined: 11 Apr 2007
Posts: 10
Location: India

PostPosted: Tue Dec 04, 2007 10:46 pm    Post subject:
Reply with quote

Thanks a lot Craq. Have tested the same and found that its working..
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Wed Dec 05, 2007 12:48 pm    Post subject: Hi
Reply with quote

Craq Giegerich,

If those 2 fields are not defined with "NOT NULL WITH DEFAULT' then
What is the alternate solution to insert spaces into them.
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 FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


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