<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:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:sans-serif;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>Better to use syntax below, as nothing
will be reported if the read is&#8217;nt working </span></font><font
color=blue face=Wingdings><span style='font-family:Wingdings;color:blue'>J</span></font><font
color=blue face=Arial><span style='font-family:Arial;color:blue'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>can cle<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>define d_Orderid =
nconvert(getsystemval(&quot;Orderid&quot;))<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>rep all<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>go<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
powerh-l-bounces+atla38=dsl.pipex.com@lists.sowder.com
[mailto:powerh-l-bounces+atla38=dsl.pipex.com@lists.sowder.com] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Pandurang Rajpurohit<br>
<b><span style='font-weight:bold'>Sent:</span></b> 12 April 2007 06:29<br>
<b><span style='font-weight:bold'>To:</span></b> powerh-l@lists.sowder.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> Use variable of shell
script in QTP</span></font><span lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
</span></font><font size=2 face=sans-serif><span style='font-size:10.0pt;
font-family:sans-serif'>Hello freinds,</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>Can
any one suggests me how to make use of variable decalred in shell script
&nbsp;in QTP. Please find code below</span></font> <br>
<br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>&nbsp;vi
change_dtd.ksh</span></font> <br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>.
$PIC_UTIL/cop_env.ksh</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
export partno</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
echo &nbsp;&quot;Enter part number (maximum 12 character) \n&quot;</span></font>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><br>
read partno</span></font> <font size=2 face=sans-serif><span style='font-size:
10.0pt;font-family:sans-serif'><br>
echo &quot;\nEnter suplier code (maximum 12 character)\n&quot;</span></font> <font
size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><br>
read src</span></font> <font size=2 face=sans-serif><span style='font-size:
10.0pt;font-family:sans-serif'><br>
echo &nbsp;&quot;\nEnter dtd flag value\n&quot;</span></font> <font size=2
face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><br>
read dtd</span></font> <font size=2 face=sans-serif><span style='font-size:
10.0pt;font-family:sans-serif'><br>
partno=&quot;9117598&quot;</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
echo $partno</span></font> <font size=2 face=sans-serif><span style='font-size:
10.0pt;font-family:sans-serif'><br>
rm dtdtest_s.sf</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
rm dtdtest_s.sfd</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
qtp auto=./CHANGE_DTD.qtc</span></font> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>vi
change_dtd.qts</span></font> <br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>RUN
changeDeliverFlag</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
set process nolimit</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
Request change_vprecord</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
;define w-part-no char*12=&quot; &nbsp; &nbsp; 9117598&quot;</span></font> <font
size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><br>
;define w-supplier char*10=&quot;E5013286&quot;</span></font> <font size=2
face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><br>
define w-part-no char*12=RJ(GETSYSTEMVAL(&quot;partno&quot;))</span></font> <font
size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><br>
;GLOBAL TEMPORARY w-part-no &nbsp; &nbsp;CHAR*122 &nbsp;INITIAL
getsystemval(&quot;partno&quot;)</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
;define w-dtd char*1=&quot;Y&quot;</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
acc vp-record</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
choose prn (w-part-no)</span></font> <font size=2 face=sans-serif><span
style='font-size:10.0pt;font-family:sans-serif'><br>
subfile dtdtest_s &nbsp;keep include prn, src, dtd of &nbsp;vp-record</span></font>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'><br>
BUILD CHANGE_DTD</span></font> <br>
<br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>Thanks
&amp; Regards<br>
Pandurang Rajpurohit,<br>
<br>
------------------------------------------------------------------------------------<br>
IBM India Private Limited,<br>
Seat No 268, 4th Floor, Tower B, <st1:PlaceName w:st="on">Tech</st1:PlaceName> <st1:PlaceType
w:st="on">Park</st1:PlaceType> One, <br>
S.No 19/A/2A/1/2, Near <st1:place w:st="on"><st1:PlaceName w:st="on">DON</st1:PlaceName>
 <st1:PlaceName w:st="on">BOSCO</st1:PlaceName> <st1:PlaceType w:st="on">School</st1:PlaceType></st1:place>,<br>
Off <st1:Street w:st="on"><st1:address w:st="on">Airport Road</st1:address></st1:Street>,
Yerwada, PUNE 411006<br>
Phone (Br) : &nbsp;+91 020 40115000 - 16322<br>
Phone (Dir) : +91 020 40116322<br>
Cell : +91-09922054662<br>
EMAIL : pandurang.rajpurohit@in.ibm.com </span></font><o:p></o:p></p>

</div>

</body>

</html>