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
 
What is "FOR" in the Create table command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
sajjan jindal
Warnings : 1

New User


Joined: 09 Sep 2007
Posts: 60
Location: india

PostPosted: Wed Aug 05, 2009 12:03 pm    Post subject: What is "FOR" in the Create table command
Reply with quote

Hi,

In my shop a tabel is defined using the below code:

Code:
CREATE TABLE                     
  F******.Emp               
   (                             
   EMP_CODE CHAR(10) NOT NULL
    FOR SBCS DATA               
  ,"NAME" CHAR(60)               
    FOR SBCS DATA               
  ,MAIL_REF_ID CHAR(10)
    FOR SBCS DATA   
  ,                         
  CONSTRAINT EMP_CODE   
  PRIMARY KEY               
  (                         
   EMP_CODE             
  )                         
 )                         
IN .....

Can anyone please tell me what is "For" used here for.
And also i am confused with the defination of name, what will be the effect of embedding the column name in quotes as above("NAME")
Back to top
View user's profile Send private message

ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Wed Aug 05, 2009 1:27 pm    Post subject:
Reply with quote

SBCS is single byte character set ....each character is represented using a single byte .. SBCS is a subset of CHAR type ...
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 Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts Need help with 002-030 ABEND in TSO R... Terry Tallian TSO/ISPF 0 Sat Mar 17, 2018 1:13 am
No new posts Need better approach to create a sort... Vamshi Veludandi DFSORT/ICETOOL 8 Thu Mar 08, 2018 5:59 pm
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm

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