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

DB2 Unload format options


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Fri Aug 12, 2016 5:42 pm
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: 2455
Location: Hampshire, UK

PostPosted: Sat Aug 13, 2016 6:57 pm
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

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Sat Aug 13, 2016 9:21 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Remote Unload of CLOB Columns DB2 6
Search our Forums:

Back to Top