Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

How To Handle COBOL Copybook Redefines in Data Services

$
0
0

Hi Experts,

 

I have a requirement to load COBOL copybook to HANA table using BODS.

 

When I create a File format for copybooks, I am getting duplicate columns in File format which is defined as "REDEFINES" in copybook structure.

 

Lets say for example below are the columns in copybook and repeated in Redefines with some extra columns,

 

COLUMN A,

COLUMN B,

COLUMN C,

COLUMN A  REDEFINES

COLUMN B,

COLUMN C,

COLUMN D,

COLUMN A, REDEFINES

COLUMN B,

COLUMN C,

COLUMN E,

COLUMN A, REDEFINES

COLUMN B,

COLUMN C,

 

When I create File format, i am getting columns like below in File format,

 

COLUMN A,

COLUMN B,

COLUMN C,

COLUMN A1,

COLUMN B1,

COLUMN C1,

COLUMN D,

COLUMN A1,

COLUMN B1,

COLUMN C1,

COLUMN E,

COLUMN A1,

COLUMN B1,

COLUMN C1,

 

COLUMN A,B and C are repeated columns and those are defined as REDEFINES in copy book.

 

When I load data file using this file format , i am getting an error says "COLUMN A1 is already Declared"

 

I have used option "Ignore redefines" check box when creating file format but its ignoring all columns which is exists in REDEFINES(Non-Duplicates are also ignored say its ignoring COLUMN D and E as well.)

 

Is there any other trick to handle this scenario in BODS.

 

Please share your idea's and give me your suggestions.

 

Thanks in advance,

 

Best Regards,

Santhosh Kumar.


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>