Suggestion in place. I didn't look/test the second locate. But you'll probably have the same problem.
Hope this helps. Roger Glenfield > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Kate > Sent: Friday, March 19, 2004 10:42 PM > To: U2 Users Discussion List > Subject: LOCATE Command - Help :( > > > Hi! > > I am trying to accomplish the following > > 1) Build a header for all possible dates for a person with > certain data in it. e.g. one person might have 3 dates where > they had activity but another person might have 5 dates with > activity, but I want the header to have all possible dates with > activity. So the Header Date variable contains all possible > dates. And that prints fine. > > LOCATE V.DATES IN X.DATE.LIST<1,1> BY "AR" SETTING LOC ELSE try LOCATE V.DATES IN X.DATE.LIST<1> BY "AR" SETTING LOC ELSE ---on Pick flavor at least, your code doesn't work --I feed the code this sequence of dates, 13219, 13224, 13223 and they don't come out 'ar' sequenced. --switch to my code and I then get 13219, 13223, 13224 > INS V.DATES BEFORE X.DATE.LIST<1,LOC> > END > > But then for each person, I want to have the values print under > the correct date headings. And it changes for each page. > > 2) For each record: > a) obtain the # of dates and print the values to print > under the correct dates for each person > > LOCATE X.AB.DATE IN X.DATE.LIST<1,1> BY "AR" SETTING POS THEN > IF VALUE = 'B' THEN > X.AB.PRINT<1,POS> = TRIM(X.AB.TYPE) > END > END > > -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
