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
 
Default values while unloading

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

Active User


Joined: 01 Feb 2007
Posts: 120
Location: Hyderabad

PostPosted: Mon Nov 19, 2007 11:31 am    Post subject: Default values while unloading
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    Post subject: Re: Default values while unloading
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    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 Default attributes for undeclared SYS... Alan Playford PL/I & Assembler 3 Wed Apr 11, 2018 5:18 pm
No new posts LOW VALUES as a KEY juares castro DB2 10 Sat Apr 07, 2018 1:06 am
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts Unloading DB2 table in CSV format alo... grvtomar COBOL Programming 7 Sun Jan 28, 2018 2:05 am
No new posts attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am

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