subfile name
Viet Nguyen
VNguyen@wsboces.org
Tue, 12 Oct 2004 15:30:41 -0400
This is a multi-part message in MIME format.
------_=_NextPart_001_01C4B091.F601FCC3
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I am using QTP and I think this is a very good trick.
Thanks.
=20
=20
=20
=20
-----Original Message-----
From: Daniel Mielke [mailto:DMielke@aic.com]=20
Sent: Tuesday, October 12, 2004 3:17 PM
To: Viet Nguyen; powerh-l@lists.sowder.com
Subject: RE: subfile name
=20
Hi Viet,=20
I assume that the source is interactive QUIZ and not compiled. I
believe that compiled QUIZ does not give the option for a variable
filename. You can generate a separate source line that states "set
subfile name <variable> keep" and then call that line using a "USE"
statement.
Set report limit 1=20
Access XXX=20
Define month char*2 =3D cconvert(sysdate){5:2}=20
Define text_line char*80 =3D "set subfile name SAVE" + month=20
Report summary text_line=20
Set subfile name subline=20
Go=20
=20
Set report nolimit=20
Access ....=20
Report ..=20
Use subline=20
Go=20
Hope that helps.=20
Daniel Mielke=20
AIC Limited=20
-----Original Message-----=20
From: Viet Nguyen [mailto:VNguyen@wsboces.org]=20
Sent: October 12, 2004 2:41 PM=20
To: powerh-l@lists.sowder.com=20
Subject: subfile name=20
Hi All,=20
How do I set subfile name based on a variable=20
For Example: Every Month we run a report and I want to save data to a
file name with the month as part of the file name i.e SAVE01, SAVE02,=20
SAV03 etc... Let's say the variable is xMonth - values 01,02,03...etc...
Thanks in advance.=20
Viet.=20
=20
t be a subscriber.=20
------_=_NextPart_001_01C4B091.F601FCC3
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C4B070.6EA8F9D0">
<title>RE: subfile name</title>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;
text-underline:single;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal-reply;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */=20
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dblue style=3D'tab-interval:.5in'>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I am using QTP and I think this is =
a very
good trick.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks.<o:p></o:p></span></font></p>=
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Daniel Mielke
[mailto:DMielke@aic.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Tuesday, October =
12, 2004
3:17 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Viet Nguyen; =
powerh-l@lists.sowder.com<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: subfile =
name</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p>
<p style=3D'margin-left:.5in'><font size=3D2 face=3D"Times New =
Roman"><span
style=3D'font-size:10.0pt'>Hi Viet,</span></font> <o:p></o:p></p>
<p style=3D'margin-left:.5in'><font size=3D2 face=3D"Times New =
Roman"><span
style=3D'font-size:10.0pt'>I assume that the source is interactive QUIZ =
and not
compiled. I believe that compiled QUIZ does not give the option =
for a
variable filename. You can generate a separate source line that =
states
"set subfile name <variable> keep" and then call that =
line
using a "USE" statement.</span></font><o:p></o:p></p>
<p style=3D'margin-left:.5in'><font size=3D2 face=3D"Times New =
Roman"><span
style=3D'font-size:10.0pt'>Set report limit 1</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>Access XXX</span></font> =
<br>
<font size=3D2><span style=3D'font-size:10.0pt'>Define month char*2 =3D
cconvert(sysdate){5:2}</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>Define text_line char*80 =
=3D
"set subfile name SAVE" + month</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>Report summary =
text_line</span></font>
<br>
<font size=3D2><span style=3D'font-size:10.0pt'>Set subfile name subline =
</span></font><br>
<font size=3D2><span style=3D'font-size:10.0pt'>Go</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'> </span></font> =
<br>
<font size=3D2><span style=3D'font-size:10.0pt'>Set report =
nolimit</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>Access =
....</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>Report ..</span></font> =
<br>
<font size=3D2><span style=3D'font-size:10.0pt'>Use =
subline</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>Go</span></font> =
<o:p></o:p></p>
<p style=3D'margin-left:.5in'><font size=3D2 face=3D"Times New =
Roman"><span
style=3D'font-size:10.0pt'>Hope that helps.</span></font> =
<o:p></o:p></p>
<p style=3D'margin-left:.5in'><font size=3D2 face=3D"Times New =
Roman"><span
style=3D'font-size:10.0pt'>Daniel Mielke</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>AIC =
Limited</span></font> <o:p></o:p></p>
<p style=3D'margin-left:.5in'><font size=3D2 face=3D"Times New =
Roman"><span
style=3D'font-size:10.0pt'>-----Original Message-----</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>From: Viet Nguyen [<a
href=3D"mailto:VNguyen@wsboces.org">mailto:VNguyen@wsboces.org</a>] =
</span></font><br>
<font size=3D2><span style=3D'font-size:10.0pt'>Sent: October 12, 2004 =
2:41 PM</span></font>
<br>
<font size=3D2><span style=3D'font-size:10.0pt'>To: =
powerh-l@lists.sowder.com</span></font>
<br>
<font size=3D2><span style=3D'font-size:10.0pt'>Subject: subfile =
name</span></font>
<o:p></o:p></p>
<p style=3D'margin-left:.5in'><font size=3D2 face=3D"Times New =
Roman"><span
style=3D'font-size:10.0pt'>Hi All,</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'> How do I =
set subfile
name based on a variable</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'> For =
Example: Every
Month we run a report and I want to save data to a</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>file name with the month =
as part of
the file name i.e SAVE01, SAVE02,</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>SAV03 etc... Let's say =
the variable
is xMonth - values 01,02,03...etc...</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>Thanks in =
advance.</span></font> <br>
<font size=3D2><span style=3D'font-size:10.0pt'>Viet.</span></font> =
<o:p></o:p></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p>
<p style=3D'margin-left:.5in'><font size=3D2 face=3D"Times New =
Roman"><span
style=3D'font-size:10.0pt'>t be a subscriber.</span></font> =
<o:p></o:p></p>
</div>
</body>
</html>
=00
------_=_NextPart_001_01C4B091.F601FCC3--