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

Default values while unloading


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

Active User


Joined: 01 Feb 2007
Posts: 123
Location: Hyderabad

PostPosted: Mon Nov 19, 2007 11:31 am
Reply with quote

Hi,

I am unloading data from a table. If a particular field is not found in the table i need to default with zeroes or spaces.
How can i do this for Numeric, Alpha Numeric, Comp-3, Comp

I had given as follows
Code:

Select ABC,
          DEF,
          XYZ,
          CHAR(    ),
          FLOAT(        )
From TABLE1;


But copybook length is not matching.
How to defalut the fields.

Thanks in advance.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


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

PostPosted: Mon Nov 19, 2007 6:41 pm
Reply with quote

bhaskar_kanteti wrote:
Hi,

I am unloading data from a table. If a particular field is not found in the table i need to default with zeroes or spaces.
How can i do this for Numeric, Alpha Numeric, Comp-3, Comp

I had given as follows
Code:

Select ABC,
          DEF,
          XYZ,
          CHAR(    ),
          FLOAT(        )
From TABLE1;


But copybook length is not matching.
How to defalut the fields.

Thanks in advance.


Except for NULLABLE fields all the fields will have a value. Nullable fields will have a separate null indicator which will be x'ff' for a null field.
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts Change Default Scroll Setting TSO/ISPF 1
Search our Forums:

Back to Top