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

Conversion of data format while unloading


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prasanya

New User


Joined: 04 Jun 2007
Posts: 34
Location: Chennai

PostPosted: Fri Feb 29, 2008 4:24 pm
Reply with quote

How do i convert a date field s9(8) comp-3 to 9(6) in my unload card itself?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Feb 29, 2008 6:34 pm
Reply with quote

Is this a DFSORT or a DB2 question?
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Feb 29, 2008 6:44 pm
Reply with quote

And why do people insist on posting questions based on the assumption that everyone else talks in "cobol-ese" and automatically know what
"s9(8) comp-3" means?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Feb 29, 2008 6:55 pm
Reply with quote

It would also be helpful to know what format the date is in and what format you want it in (mmddyy, yymmdd, or ddmmyy etc)?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Feb 29, 2008 9:05 pm
Reply with quote

Hello,

Quote:
convert a date field s9(8) comp-3 to 9(6)
If the comp-3 date is 20080215 it will not fit into the target field. . . . How should that be handled?
Back to top
View user's profile Send private message
Prasanya

New User


Joined: 04 Jun 2007
Posts: 34
Location: Chennai

PostPosted: Mon Mar 03, 2008 10:33 am
Reply with quote

The date format is(mmddyy) and i dont need a change in the date format.
My requirement is to unload from a table using a query and in that itself to convert the data type format.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts 10 byte RBA conversion DB2 2
Search our Forums:

Back to Top