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
 
DB2 Unload format options

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

Active User


Joined: 17 Nov 2009
Posts: 122
Location: India

PostPosted: Fri Aug 12, 2016 5:42 pm    Post subject: DB2 Unload format options
Reply with quote

Hi All

I want to use DB2UJHPU to unload rows from a table. to be used by non db2 team.

need to unload the date with FORMAT EXTERNAL .. to get the the binary date in display format.

when i run the job it gives the ouput with fileds without any delimiter.
is there any option to direct the jcl to use a delimiter say ;

Thanks

The JCL SYSIN:


Code:
//SYSIN DD *
UNLOAD TABLESPACE
DB2 FORCE
LOCK NO
QUIESCE NO
QUIESCECAT NO
OPTIONS
NULL OFF
 SELECT *
 FROM XYZ.ABC_TBL
 FETCH FIRST 10 ROWS ONLY
 WITH UR
;
OUTDDN (UNLDD1)
FORMAT EXTERNAL
/*
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1848
Location: UK

PostPosted: Sat Aug 13, 2016 6:57 pm    Post subject:
Reply with quote

What does the manual say?

And why post a DB2 question in the JCL section (moved to DB2 for you)? And, surely you know how to use the code tags (coded for you)?
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1744
Location: NY,USA

PostPosted: Sat Aug 13, 2016 9:21 pm    Post subject:
Reply with quote

I don't think anything implicit available as such so you need to code for but most importantly why did you not talk to DBA Yet as they are the right group to answer accurately at your site?
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 Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
This topic is locked: you cannot edit posts or make replies. Need help in estimating space of unlo... ashek15 IMS DB/DC 12 Fri Apr 07, 2017 5:11 am
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am


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