<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=464444101-14022007><FONT face=Arial color=#0000ff size=2>Lorry 
you can do this many ways.</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face=Arial color=#0000ff size=2>I 
always use this method:</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>RUN abc</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp; GLOBAL TEMP T-Therapist CHARACTER * 10 &amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PARM PROMPT "Therapist 
"</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp; GLOBAL TEMP&nbsp;T-StartDate DATE CENTURY INCLUDED 
&amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PARM PROMPT "Selection From 
(YYYYMMDD) "</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp; GLOBAL TEMP&nbsp;T-EndDate DATE CENTURY INCLUDED 
&amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PARM PROMPT "Selection From 
(YYYYMMDD) "</FONT></SPAN></DIV></FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>REQUEST create-empty-subfile</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>ACCESS&nbsp;systemdefaults&nbsp;; single record file</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp; TEMP&nbsp;T-Total</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>SUBFILE&nbsp;sfabc &amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;KEEP 
&amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AT 
FINAL&nbsp;&amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INCLUDE T-Therapist alias 
Therapist, &amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
T-StartDate alias SelectionFrom, &amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
T-EndDate alias SelectionThru, &amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
T-Total alias TotalCount</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>REQUEST Subtotal-my-records</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>ACCESS *sfabc &amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp;LINK&nbsp;Therapist OF sfabc &amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;TO Therapist &amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;OF mydatafile</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp; TEMP&nbsp;T-Counter COUNT </FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT color=#0000ff 
size=2></FONT></SPAN><SPAN class=464444101-14022007><FONT face="Courier New" 
color=#0000ff size=2>OUTPUT sfabc &amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UPDATE &amp;</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AT FINAL</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face="Courier New" color=#0000ff 
size=2>&nbsp; ITEM&nbsp;TotalCount of sfabc 
FINAL&nbsp;T-Counter</FONT></SPAN></DIV>
<DIV><SPAN class=464444101-14022007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464444101-14022007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma 
size=2>-----Original Message-----<BR><B>From:</B> 
powerh-l-bounces+ken.langendock=rogers.com@lists.sowder.com 
[mailto:powerh-l-bounces+ken.langendock=rogers.com@lists.sowder.com] <B>On 
Behalf Of </B>Lorry Litman<BR><B>Sent:</B> February 13, 2007 6:50 
PM<BR><B>To:</B> PowerHouse listserver (E-mail)<BR><B>Subject:</B> QTP to always 
create subfile<BR><BR></FONT></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Hi,</FONT> </P>
<P><FONT face=Arial size=2>I'm using PH 7.10G and VMS 7.3-1</FONT> <BR><FONT 
face=Arial size=2>I have a small qtp program that prompts for a therapist 
number, start and end dates. It then does some counting of items and writes to a 
subfile. The problem I'm having is the subfile is only created if records are 
found, however, I need the subfile to always be created and include the items 
prompted for because this file is then accessed by a quiz program that does some 
reporting.</FONT></P>
<P><FONT face=Arial size=2>Thanx</FONT> <BR><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Lorry</FONT> </P><BR>This e-mail 
and/or any documents in this transmission is intended for the address(s) only 
and may contain legally privileged or confidential information. Any unauthorized 
use, disclosure, distribution, copying or dissemination is strictly prohibited. 
If you receive this transmission in error, please notify the sender immediately 
and return the original. </BODY></HTML>