[EXTERNAL] Re: having issues using index for a file
IM OK4U2C
imok4u2c at gmail.com
Fri Aug 21 18:30:42 CDT 2020
Hi Helen,
In the dictionary or DB is student_num the name of the index?
Perhaps the index student_num has one item declared in that index,
something like student_no, and it's the item student_no powerhouse is
looking for.
Good luck.
Stay safe.
Lorry
On Fri, Aug 21, 2020 at 11:08 AM Helen Wellcome <HWellcom at wsboces.org> wrote:
>
> Didn’t work
>
> I believe I had tried that before. But I re-tried
>
> I would have thought it would have worked. Don’t know why its being so picky
>
>
>
> set process nolimit
>
> > access google_students_201920 alias xwork
>
> > sort on student_num
>
> > define xemail1 char*45 = email
>
> > define xemail2 char*45 = " "
>
> > subfile xsthelentestgoogle keep at student_num include student_num, xemail1, xemail2 index student_num
>
> *E* Item specified for index/segment not part of subfile include list.
>
> > go
>
>
>
> From: Murray Scholz <murray.scholz at abri.une.edu.au>
> Sent: Thursday, August 20, 2020 8:15 PM
> To: powerh-l at lists.sowder.com; Helen Wellcome <HWellcom at wsboces.org>
> Subject: [EXTERNAL] Re: having issues using index for a file
>
>
>
> ** Warning! External Email! **
>
> Hello Helen,
> I think it's just complaining about the syntax of your subfile statement. Put the "index student_num" at the end, after your list of items.
> eg.
> > access parameters
> > sort on file-type
> > define a1 char*60 = param-descript
> > define a2 char*60 = " "
> > subfile xxxyyyzzz keep at file-type include file-type,a1,a2 index file-type
> > go
>
> Executing request 1 ...
>
> Records read:
> PARAMETERS 110
>
> Transactions processed: 110
>
> Records processed: Added Updated Unchanged Deleted
> XXXYYYZZZ 27 0 0 0
>
> Finished.
>
> >>>>>>>>>>>>>>>>>>>>>>>
>
> Hope that helps.
>
> Regards
> Murray Scholz
>
> Agricultural Business Research Institute
>
> University of New England
>
> Armidale NSW 2351 Australia
>
> Email murray.scholz at abri.une.edu.au
>
> On 21/08/20 10:00 am, Helen Wellcome wrote:
>
> I have been coding with qtp for many years but am having a brain-lock.
>
>
>
> I have a file of students with emails. There are some students with 2 records and has caused problems on one of the reports , by listing a course twice.
>
> I wanted to take this file and create a file with student_num email1 email2 (one record for the student)
>
>
>
>
>
> set process nolimit
>
> > access google_students_201920 alias xwork
>
> > sort on student_num
>
> > define xemail1 char*45 = email
>
> > define xemail2 char*45 = " "
>
> > subfile xsthelnetestgoogle at student_num index student_num keep include student_num, xemail1, xemail2
>
> ^^^^^
>
> *E* Expected: . OF PORTABLE FORMAT <eol> ALIAS AT IF ON APPEND
>
> NOAPPEND KEEP TEMPORARY DICTIONARY NODICTIONARY INCLUDE
>
>
>
> If there was no error I then had setup:
>
> Access google_students_201920 alias xwork &
>
> Link student_num of xwork to student_num of *xsthelentestgoogle alias xtemp
>
> Select if email of xwork <> xemail1 of xtemp
>
> Output *xsthelentestgoogle update
>
> Item xemail2 of *xsthelentestgoogle final email
>
>
>
> CONFIDENTIALITY NOTICE: The information contained in this message is confidential, and is intended only for the addressee. If the reader of this message is not the intended recipient, or employee or agent responsible for delivering it to the intended recipient, you are hereby notified that dissemination, distribution, or copying of this communication or any of its content is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us promptly at (631) 549-4900 and destroy the email and any copies.
>
> --
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l at lists.sowder.com
> Subscribe: 'subscribe' in message body to powerh-l-request at lists.sowder.com
> Unsubscribe: 'unsubscribe <password>' in message body to powerh-l-request at lists.sowder.com
> https://lists.sowder.com/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you must be a subscriber.
> Add 'site:lists.sowder.com powerh-l' to your search terms to search the list archive at Google.
More information about the powerh-l
mailing list