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

Input file to load to the DB2 table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Mon Jun 09, 2008 8:17 pm
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
Reply with quote

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

Moderator Emeritus


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

PostPosted: Tue Jun 10, 2008 1:12 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Load new table with Old unload - DB2 DB2 6
Search our Forums:

Back to Top