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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Page 1 2 

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Left Outer Join
 Login/Join
 
Gold member
posted Hide Post
show off...how about keep my job Smiler. I've been asked to product this report since monday. I guess i'll pull two reports and merge them LOL!!! now how does that help the others who want to pull this ....go figure.


WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
 
Posts: 91 | Registered: May 15, 2008Report This Post
Expert
posted Hide Post
OK, I'll try to help:

1ST OFF - This is SCT BANNER / Student - Need to reverse the JOINs

 
JOIN FILE SLRRASG AT SLRRASG_PIDM TAG T1 TO 
ALL  FILE SLRMASG AT SLRMASG_PIDM TAG T2
WHERE T1.SLRRASG_PIDM EQ T2.SLRMASG_PIDM; 
WHERE T2.SLRMASG_TERM_CODE EQ '200809';
END
-RUN
JOIN FILE SLRRASG AT SLRRASG_PIDM TAG T1 TO 
ALL  FILE AT_AR_BALANCE_BY_ENTITY AT PIDM_KEY TAG T3
WHERE T1.SLRRASG_PIDM EQ T3.PIDM_KEY; 
WHERE T1.SLRRASG_ASCD_CODE EQ 'AC';
WHERE T1.SLRRASG_TERM_CODE EQ '&SLRRASG_TERM_CODE.Term Code.';
END
-RUN


I've never tried a PROMPT in a JOIN, see if the above works. If not put it down below.

Now, report off of SLRRASG

 
DEFINE FILE SLRRASG
Name/A40V=LAST_NAME || (', ' | FIRST_NAME) || (' ' | MIDDLE_INITIAL);
END
TABLE FILE SLRRASG
BY Name NOPRINT
BY ID
BY Name
BY SLRRASG_TERM_CODE AS 'Term Code'
BY SLRMASG_MRCD_CODE AS 'Meal Plan'
BY SLRMASG_BEGIN_DATE AS 'Meal Begin Date'
BY SLRMASG_END_DATE AS 'Meal End Date'
BY SLRMASG_AR_IND AS 'Meal AR IND'
BY SLRRASG_BLDG_CODE AS 'Building'
BY SLRRASG_ROOM_NUMBER AS 'Room No.'
BY SLRRASG_BEGIN_DATE AS 'Room Begin Date'
BY SLRRASG_END_DATE AS 'Room End Date'
BY AMOUNT_DUE AS 'Amount Due'
BY MEMO_BALANCE AS 'Memo Balance' 

Comment these out, they are now done in the JOIN
May need to put the 1st one back in

-*WHERE SLRRASG_TERM_CODE EQ '&SLRRASG_TERM_CODE.Term Code.';
-*WHERE SLRRASG_ASCD_CODE EQ 'AC';
-*WHERE SLRMASG_TERM_CODE EQ '200809';

 


See if this works for you...

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Master
posted Hide Post
quote:
WHERE SLRRASG_TERM_CODE EQ '&SLRRASG_TERM_CODE.Term Code.';
WHERE SLRRASG_ASCD_CODE EQ 'AC';
WHERE SLRMASG_TERM_CODE EQ '200809';


I think the problem is in your where statement. Try changing this to:
 
WHERE (SLRRASG_TERM_CODE EQ '&SLRRASG_TERM_CODE.Term Code.' 
 AND SLRRASG_ASCD_CODE EQ 'AC' )
 OR SLRMASG_TERM_CODE EQ '200809'
 


You might also want to change some of your BY statements and put them in a PRINT instead.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Guru
posted Hide Post
SET ALL = PASS

Includes parent instances that are missing descendants, even if WHERE or IF criteria exist to screen fields in the descendant segments that are missing instances (that is, a test on a missing segment passes).

This will override the WHERE clauses for the short path, but has the side effect of giving you the people without rooms or meals also. You will need to HOLD and get rid of them.

I think that Mickey's suggestion of using MATCH is the best - the MATCH wizard in DS makes it relatively painless.

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
 
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007Report This Post
Virtuoso
posted Hide Post
I agree, use match, as much as I hate to do so, sometimes it's the only way to merge your data. The GUI is good for match.

Occasionally or often depending on requirements use the GUI to get what you want, then fine tune it by editing the code. Remembering though if you do edit, the GUI is notorious for removing your fine tuning.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
  Powered by Social Strata Page 1 2  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders