Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  Rules, Regulations, and FAQs    Separating columns while dumping data into SQL Server from COBOL using DataMigrator
Go
New
Search
Notify
Tools
Reply
  
Separating columns while dumping data into SQL Server from COBOL using DataMigrator
 Login/Join
 
Member
posted
Does anyone have an example of how to query when Separating columns while dumping data into SQL Server from COBOL using Data Migrator?

Because in cobol copybook we structure like

Copybookfilename.cpy

03 ABC-DEF OCCURS 3 TIMES.
05 ABC-DEF-G PIC X(08)
05 ABC-DEF-H PIC S9(9)V99 COMP-3
05 ABC-DEF-I PIC S9(7) COMP-3

And I am writing query in SQL Script to load data like below

Select "ABC-DEF-G","ABC-DEF-H","ABC-DEF-I" From Copybookfilename

It loads data in as mentioned below

ABC-DEF
[[20161209,48.80,123456],[null,0.00,0],[null,0.00,0]]

Actually I want data in three separate columns like

ABC-DEF-G ABC-DEF-H ABC-DEF-I
20161209 48.80 123456
NULL 0.00 0
NULL 0.00 0

What should I do to get this?


WebFOCUS 8
Windows, All Outputs
 
Posts: 9 | Registered: December 09, 2016Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  Rules, Regulations, and FAQs    Separating columns while dumping data into SQL Server from COBOL using DataMigrator

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.