Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

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