Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Access TNG Telephone Management Database

Hi Guys

has anyone got it right to access the TNG database file via QlikView?

TNG is a database for a telephone management system

1 Solution

Accepted Solutions
Not applicable
Author

Hello

I actually found the following:

Under c:\Program Files (x86)\datatex\tng\export\*.txt]

...the is a whole lot of TXT files.

You can import them into QlikView by setting up the following:

LOAD @1 as 'Unique ID',

    
@2 as CallDate,

    
@3 as Ext,

    
@4 as 'Name and Surname',

    
//@5,

     @6 as 'department',

    
@7 as number,

    
@8 as DIDdigits,

    
@9 as Destination,

    
@10 as IncomingOutgoing,

    
@11 as Duration,

    
@12 as TrunkLine,

    
@13 as Action,

    
@14 as Pulse,

    
@15 as Costingunit,

    
@16 as 'Ring Time',

    
@17 as AccountCode,

    
@18 as Cost,

    
@19 as Reference,

    
@20 as 'Private or Busiiness',

    
@21 as Phonebook,

    
@22 as category,

    
@23 as TrunkName,

    
@24 as AccountName,

    
@25 as ratebook,

    
@26 as CallType,

    
@27 as BranchCode,

    
@28 as Price,

    
@29 as MyLink

FROM

[\\hostname\c$\Program Files (x86)\datatex\tng\export\*.txt]

(
txt, utf8, no labels, delimiter is '|', msq);



CALLS2:

NoConcatenate

LOAD [Unique ID],

    
CallDate,

    
num(month(CallDate)) as 'Month',

    
year(CallDate) as Year,

    
Ext,

    
[Name and Surname],

    
department,

    
number,

    
DIDdigits,

    
Destination,

    
IncomingOutgoing,

    
Duration,

    
TrunkLine,

    
Action,

    
Pulse,

    
Costingunit,

    
[Ring Time],

    
AccountCode,

    
Cost,

    
Reference,

    
[Private or Busiiness],

    
Phonebook,

    
category,

    
TrunkName,

    
AccountName,

    
ratebook,

    
CallType,

    
BranchCode,

    
Price,

    
MyLink

    

    

resident CALLS;



drop table CALLS;



rename table CALLS2 to CALLS;

View solution in original post

5 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If you're talking about this TNG then there is no database. According to the user manual you can export to csv.


talk is cheap, supply exceeds demand
Not applicable
Author

Hello

I actually found the following:

Under c:\Program Files (x86)\datatex\tng\export\*.txt]

...the is a whole lot of TXT files.

You can import them into QlikView by setting up the following:

LOAD @1 as 'Unique ID',

    
@2 as CallDate,

    
@3 as Ext,

    
@4 as 'Name and Surname',

    
//@5,

     @6 as 'department',

    
@7 as number,

    
@8 as DIDdigits,

    
@9 as Destination,

    
@10 as IncomingOutgoing,

    
@11 as Duration,

    
@12 as TrunkLine,

    
@13 as Action,

    
@14 as Pulse,

    
@15 as Costingunit,

    
@16 as 'Ring Time',

    
@17 as AccountCode,

    
@18 as Cost,

    
@19 as Reference,

    
@20 as 'Private or Busiiness',

    
@21 as Phonebook,

    
@22 as category,

    
@23 as TrunkName,

    
@24 as AccountName,

    
@25 as ratebook,

    
@26 as CallType,

    
@27 as BranchCode,

    
@28 as Price,

    
@29 as MyLink

FROM

[\\hostname\c$\Program Files (x86)\datatex\tng\export\*.txt]

(
txt, utf8, no labels, delimiter is '|', msq);



CALLS2:

NoConcatenate

LOAD [Unique ID],

    
CallDate,

    
num(month(CallDate)) as 'Month',

    
year(CallDate) as Year,

    
Ext,

    
[Name and Surname],

    
department,

    
number,

    
DIDdigits,

    
Destination,

    
IncomingOutgoing,

    
Duration,

    
TrunkLine,

    
Action,

    
Pulse,

    
Costingunit,

    
[Ring Time],

    
AccountCode,

    
Cost,

    
Reference,

    
[Private or Busiiness],

    
Phonebook,

    
category,

    
TrunkName,

    
AccountName,

    
ratebook,

    
CallType,

    
BranchCode,

    
Price,

    
MyLink

    

    

resident CALLS;



drop table CALLS;



rename table CALLS2 to CALLS;

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Ok, so it's not csv, but psv (pipe separated values)

You don't need an extra resident load if all you want to do is calculate some extra fields.

LOAD @1 as 'Unique ID',
    @2 as CallDate,

    num(month(@2)) as Month

    year(@2) as Year
   
@3 as Ext,
    @4 as 'Name and Surname',
    @6 as 'department',
    @7 as number,
    @8 as DIDdigits,
    @9 as Destination,
    @10 as IncomingOutgoing,
    @11 as Duration,
    @12 as TrunkLine,
    @13 as Action,
    @14 as Pulse,
    @15 as Costingunit,
    @16 as 'Ring Time',
    @17 as AccountCode,
    @18 as Cost,
    @19 as Reference,
    @20 as 'Private or Busiiness',
    @21 as Phonebook,
    @22 as category,
    @23 as TrunkName,
    @24 as AccountName,
    @25 as ratebook,
    @26 as CallType,
    @27 as BranchCode,
    @28 as Price,
    @29 as MyLink
FROM
[\\hostname\c$\Program Files (x86)\datatex\tng\export\*.txt]
(txt, utf8, no labels, delimiter is '|', msq);


talk is cheap, supply exceeds demand
Not applicable
Author

Hello, you are right. Was playing with code, did a CTRL+ A and pasted…oops

Not applicable
Author

Hello, you are right. Was playing with code, did a CTRL+ A and pasted…oops