<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I have been coding with qtp for many years but am having a brain-lock.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal">I wanted to take this file and create a file with student_num email1 email2 (one record for the student)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">set process nolimit<o:p></o:p></p>
<p class="MsoNormal">> access google_students_201920 alias xwork<o:p></o:p></p>
<p class="MsoNormal">> sort on student_num<o:p></o:p></p>
<p class="MsoNormal">> define xemail1 char*45 = email<o:p></o:p></p>
<p class="MsoNormal">> define xemail2 char*45 = " "<o:p></o:p></p>
<p class="MsoNormal">> subfile xsthelnetestgoogle at student_num index student_num keep include student_num, xemail1, xemail2<o:p></o:p></p>
<p class="MsoNormal"> ^^^^^<o:p></o:p></p>
<p class="MsoNormal">*E* Expected: . OF PORTABLE FORMAT <eol> ALIAS AT IF ON APPEND<o:p></o:p></p>
<p class="MsoNormal"> NOAPPEND KEEP TEMPORARY DICTIONARY NODICTIONARY INCLUDE<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If there was no error I then had setup:<o:p></o:p></p>
<p class="MsoNormal">Access google_students_201920 alias xwork &<o:p></o:p></p>
<p class="MsoNormal">Link student_num of xwork to student_num of *xsthelentestgoogle alias xtemp<o:p></o:p></p>
<p class="MsoNormal">Select if email of xwork <> xemail1 of xtemp<o:p></o:p></p>
<p class="MsoNormal">Output *xsthelentestgoogle update<o:p></o:p></p>
<p class="MsoNormal">Item xemail2 of *xsthelentestgoogle final email<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
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.
</body>
</html>