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
 

 

Input file to load to the DB2 table

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

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Mon Jun 09, 2008 3:09 pm    Post subject: Input file to load to the DB2 table
Reply with quote

I am writing a JCL to create a comma separated file to load to the DB2 table. Following is the output of that JCL which will be used as input for the LOAD utility. The first three fields are character of length 12,5 and 5.


YTTP0602 , 5201, 1043,0,00,2007-02-20
YTTP0602 , 5234, 577,0,00,2007-03-30
YTTP0602 , 5272, 396,0,00,2007-05-14

My question is, is it required to have the character input in quotes? in other words will the above file work as input to LOAD utility or I will have to change it to following format before passing as input to LOAD

'YTTP0602 ',' 5201',' 1043',0,00,2007-02-20
'YTTP0602 ',' 5234',' 577',0,00,2007-03-30
'YTTP0602 ',' 5272',' 396',0,00,2007-05-14

Presently I dont have access to run the LOAD utility on DB2 and hence need your help on this.

Thanks
-Manohar
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jun 09, 2008 8:17 pm    Post subject:
Reply with quote

Hello,

For that data, you should not need quotes.
Back to top
View user's profile Send private message
manoopatil

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Tue Jun 10, 2008 9:28 am    Post subject: Reply to: Input file to load to the DB2 table
Reply with quote

Thanks for your help!
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jun 10, 2008 1:12 pm    Post subject: Reply to: Input file to load to the DB2 table
Reply with quote

You're welcome icon_smile.gif

d
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 SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


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