Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
DB_LOOKUP
 Login/Join
 
Platinum Member
posted
I have used DB_LOOKUP() for quite some time now and now I a have ran into an issue. I cannot seem to recreate it with a CARE example due to how many fields I am passing. I have a DB_LOOKUP such that:


COMPUTE TOT_PTS_ACH2/I5 =DB_LOOKUP(HOLDFILE, FIELD1,FIELD1,FIELD2,FIELD2,FIELD3,FIELD3,FIELD4,FIELD4,FIELD5,FIELD5,FIELD6,FIELD6,TOT_PTS_ACH);


When I run this I get:
"This report is invalid because the data retrieval has been killed or the job has been stopped."

However when I run it removing the last two fields:


COMPUTE TOT_PTS_ACH2/I5 =DB_LOOKUP(HOLDFILE, FIELD1,FIELD1,FIELD2,FIELD2,FIELD3,FIELD3,FIELD4,FIELD4,TOT_PTS_ACH);


It will work, obviously it returns only the first value of multiple since I cannot have FIELD5 and FIELD6 from both HOLD files(FORMAT ALPHA).... I have made sure that the formats are are the same for the two fields A40 and A14. If I try just these two FIELDS in the DB_LOOKUP I get the same error:


COMPUTE TOT_PTS_ACH2/I5=DB_LOOKUP(HOLDFILE,FIELD5,FIELD5,FIELD6,FIELD6,TOT_PTS_ACH);


I am lost and this error tells me absolutely squat... LOL

Any takers OR GIVERS! Wink

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


Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
Expert
posted Hide Post
Have you checked to see what the contents of the last two fields are ?

Also, is the lookup master multisegment ?, you state hold file, but DB_LOOKUP supports top segment only.

Are the last two fields read fields or DEFINE fields in the lookup master ?


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Here you go Obi "Waz" Kenobi,

I have the following for you to digest. How does a HOLD held in ALPHA SEGMENT exactly? Been trying to figure that out...


TABLE FILE OVERVIEW3
PRINT
TOT_PTS_ACH
TOT_PTS_POS
BY TEACHER
BY SUBJECT
BY STRANDNM
BY HT_Test_Date
BY TESTNAME
BY STARTDT
ON TABLE HOLD AS OVERVIEW FORMAT ALPHA
MORE
FILE OVERVIEW2
MORE
FILE OVERVIEW1
END

TABLE FILE INDIVIDUAL3
SUM PTS_ACH
PTS_POS
BY TEACHER
BY HT_Test_Date
BY TESTNAME
BY STARTDT
BY CLASS_GROUP
BY HT_StudentId
BY ORDER
BY SUBJECT
BY ORDER2
BY STRANDNM
BY PERF
ON TABLE HOLD AS INDIVIDUAL FORMAT ALPHA
MORE
FILE INDIVIDUAL2
MORE
FILE INDIVIDUAL1
END

TABLE FILE INDIVIDUAL
PRINT
COMPUTE TOT_PTS_ACH2/I5= DB_LOOKUP(OVERVIEW,TEACHER,TEACHER,HT_Test_Date,HT_Test_Date,TESTNAME,TESTNAME,STARTDT,STARTDT,SUBJECT,SUBJECT,STRANDNM,STRANDNM,TOT_PTS_ACH);
BY TEACHER
BY HT_Test_Date
BY TESTNAME
BY STARTDT
BY CLASS_GROUP

BY HT_StudentId
BY ORDER NOPRINT
BY SUBJECT
BY ORDER2 NOPRINT
BY STRANDNM
BY PERF
BY PTS_ACH
BY PTS_POS
END



Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
Platinum Member
posted Hide Post
I verified that the contents will match up and contain the same type of data basically a school subject and then a subset of lower level subjects within each subject.


Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
Expert
posted Hide Post
First thing, you need to order your hold file the same as the fields in the DB_LOOKUP, as per documentation.

TEACHER,SUBJECT,STRANDNM,HT_Test_Date,TESTNAME,STARTDT

Whats the format of the 6 fields in the two hold files ? Do they match exactly ?

I don't think you need the FORMAT ALPHA.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
I put both hold files in same order. I checked both hold files for the formats:


FILENAME= INDIVIDUAL
TEACHER E01 A40
HT_Test_Date E02 A12
TESTNAME E03 A16
STARTDT E04 A12
CLASS_GROUP E05 I2
HT_StudentId E06 I8
SUBJECT E07 A40
STRANDNM E08 A14
PERF E09 A5
PTS_ACH E10 I5
PTS_POS E11 I5

FILENAME= OVERVIEW
TEACHER E01 A40
HT_Test_Date E02 A12
TESTNAME E03 A16
STARTDT E04 A12
SUBJECT E05 A40
STRANDNM E06 A14
TOT_PTS_ACH E07 I5
TOT_PTS_POS E08 I5


If this were a join it would be OVERVIEW(ONE) to INDIVIDUAL(MANY) relationship. I tried a join and I get same issue.


Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
Platinum Member
posted Hide Post
Still like to figure out how this can be solved via DB_LOOKUP but I got it working by JOINING on STRANDNM and then using following without DB_LOOKUP still frustrated with DB_LOOKUOP and will conquer it...


WHERE IND_ALL.SEG01.TEACHER EQ OVERVIEW.SEG01.TEACHER;
WHERE IND_ALL.SEG01.HT_Test_Date EQ OVERVIEW.SEG01.HT_Test_Date;
WHERE IND_ALL.SEG01.TESTNAME EQ OVERVIEW.SEG01.TESTNAME;
WHERE IND_ALL.SEG01.STARTDT EQ OVERVIEW.SEG01.STARTDT;
WHERE IND_ALL.SEG01.SUBJECT EQ OVERVIEW.SEG01.SUBJECT;
WHERE IND_ALL.SEG01.STRANDNM EQ OVERVIEW.SEG01.STRANDNM;


Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
Expert
posted Hide Post
ONE AT A TIME!!!




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
Frowner Yelling at me already! lol


Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders