Fw: Use variable of shell script in QTP

Pandurang Rajpurohit pandurang.rajpurohit at in.ibm.com
Fri May 11 04:28:17 CDT 2007


Hi Freinds,

A vairiable is defined in QTP of character 12. And i  am passing a 
vairiable of 8 character passing from Unix script to QTP. How this  7 
character data paased to QTP can be made 12 with left justified. And also 
the variable can be upper case. Please suggests.


Thanks & Regards
Pandurang Rajpurohit,

------------------------------------------------------------------------------------
IBM India Private Limited,
Seat No 268, 4th Floor, Tower B, Tech Park One, 
S.No 19/A/2A/1/2, Near DON BOSCO School,
Off Airport Road, Yerwada, PUNE 411006
Phone (Br) :  +91 020 40115000 - 16322
Phone (Dir) : +91 020 40116322
Cell : +91-09922054662
EMAIL : pandurang.rajpurohit at in.ibm.com 
----- Forwarded by Pandurang Rajpurohit/India/IBM on 05/11/2007 02:53 PM 
-----

Pandurang Rajpurohit/India/IBM 
04/12/2007 10:58 AM

To
powerh-l at lists.sowder.com
cc

Subject
Use variable of shell script in QTP





Hello freinds,

Can any one suggests me how to make use of variable decalred in shell 
script  in QTP. Please find code below


 vi change_dtd.ksh
. $PIC_UTIL/cop_env.ksh 
export partno 
echo  "Enter part number (maximum 12 character) \n" 
read partno 
echo "\nEnter suplier code (maximum 12 character)\n" 
read src 
echo  "\nEnter dtd flag value\n" 
read dtd 
partno="9117598" 
echo $partno 
rm dtdtest_s.sf 
rm dtdtest_s.sfd 
qtp auto=./CHANGE_DTD.qtc 

vi change_dtd.qts
RUN changeDeliverFlag 
set process nolimit 
Request change_vprecord 
;define w-part-no char*12="     9117598" 
;define w-supplier char*10="E5013286" 
define w-part-no char*12=RJ(GETSYSTEMVAL("partno")) 
;GLOBAL TEMPORARY w-part-no    CHAR*122  INITIAL getsystemval("partno") 
;define w-dtd char*1="Y" 
acc vp-record 
choose prn (w-part-no) 
subfile dtdtest_s  keep include prn, src, dtd of  vp-record 
BUILD CHANGE_DTD 


Thanks & Regards
Pandurang Rajpurohit,

------------------------------------------------------------------------------------
IBM India Private Limited,
Seat No 268, 4th Floor, Tower B, Tech Park One, 
S.No 19/A/2A/1/2, Near DON BOSCO School,
Off Airport Road, Yerwada, PUNE 411006
Phone (Br) :  +91 020 40115000 - 16322
Phone (Dir) : +91 020 40116322
Cell : +91-09922054662
EMAIL : pandurang.rajpurohit at in.ibm.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20070511/c30ecc02/attachment.htm


More information about the powerh-l mailing list