I am using Relativity to define ISAM file.Below is one such exmaple:
File structure [EMPLOYEE]
01 Record-1.
02 EMP-ID PIC 9(10).
02 EMP-NAME PIC X(30).
02 EMP-DEPT-CODE PIC 9(3).
Relativity Definition
TABLE : EMPLOYEE
EMP_ID DECIMAL(10,0) PRIMARY KEY NOT NULL..
EMP_NAME CHAR(30) NOT NULL.
EMP_DEPT_CODE SMALLINT NULLABLE.
When I am trying to INSERT Value. Insert query has only 2 columns. Insert query is failing for null value in EMP_DEPT_CODE.
INSERT INTO EMPLOYEEE (EMP_ID,EMP_NAME) VALUE ("ABC","SWAP")
My question : Is there a way to DEFAULT Value inserted into the column(s) not passed via Query? I saw Default Value column in File Definition portion of Relativity but it is not editable.
Any help or guidance is highly appreciated.
### Above query is for reference only. Actual query has 100 columns.
#Relativity
#RM/COBOL

