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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm


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