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
 
Unload the table data with Delimiters

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

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Mon Apr 27, 2009 11:03 pm    Post subject: Unload the table data with Delimiters
Reply with quote

Dear DB2 Experts,

I want to unload the data to a file from the table such that the fields of the colums should be delimited by '|'

Table:
Code:
ID     - CHAR(9)
COL2   - CHAR(4)
COL3   - CHAR(5)
COL    - CHAR(22)

ID         COL2  COL3   COL4                   
---------  ----  -----  ----------------------
ACD990795  JZZ   SB     SA34100               
BCJ908765  ABC   AB     AH12345

Please give me the JCL
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Mon Apr 27, 2009 11:22 pm    Post subject: Reply to: Unload the table data with Delimiters
Reply with quote

A search found two similar topics:

http://www.ibmmainframes.com/viewtopic.php?t=35629
http://www.ibmmainframes.com/viewtopic.php?t=27328
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Wed Apr 29, 2009 12:41 am    Post subject: Reply to: Unload the table data with Delimiters
Reply with quote

Hi

You can use DELIMITED COLDEL '|' in your UNLOAD utility control card statement in the JCL.

Regards
Raghu
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
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

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