Focal Point
[CLOSED] SEGTYPE for DB2 files on AS/400

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7177045826

February 05, 2013, 03:21 PM
Rena Levy
[CLOSED] SEGTYPE for DB2 files on AS/400
All master files created to reference DB2 tables on AS/400 automatically get SEGTYPE=S0 parameter. Based on existing documentation, the SEGTYPE parameter is used for Focus files and fixed file formats. Master files are defined with SUFFIX=DB2. What significance does the SEGYPE=S0 parameter have? Is it required? why is it generated automatically?

thanks...

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6
Windows, All Outputs
February 05, 2013, 03:58 PM
Waz
Simply, SEGTYPE indicates the sort order.

S4 = 4 sort keys
SH3 = 3 sort keys High to Low

The RDBMS Knows the keys and indexes and therefore are not needed.

There is much more on this, and I would suggest taking a look at the manual Describing Data With WebFOCUS Language.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

February 05, 2013, 04:56 PM
Rena Levy
hi Waz,

thanks for your reply. The documentation describes your scenario for Focus files. What is the deal regarding DB2 files on the AS400? Not sure that SEGTYPE works the same way for DB2?

any thoughts?

Thanks for your help...rena


WebFOCUS 7.6
Windows, All Outputs
February 05, 2013, 05:17 PM
Waz
From what I understand, it doesn't mean anything for RDBMS's.

The important part is the order of the fields and the Keys attribute in the ACX file.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!