Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us