<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
hi vamsi:<BR>
Please check the run listing.<BR>
<BR>
My guess is that an old copy OPNLSVINT2.sfd exists<BR>
and for some reason is not being overwritten when you<BR>
attempt the rename. <BR>
<BR>
When you use the APPEND option QTP retains<BR>
the .sfd file if it exists else it creates a new one.<BR>
<BR>
Regards,<BR>
Peter <BR><BR><BR>
<BLOCKQUOTE>
<HR>
Date: Fri, 14 Dec 2007 20:50:44 +0530<BR>From: vamsi.coe@gmail.com<BR>To: powerh-l@lists.sowder.com<BR>Subject: Problem With Subfiles: Automatic Realignment of ITEMS<BR><BR>Hello All,<BR><BR>I've problems while creating system interfaces using subfiles.<BR>Subfile definition looks something like this:<BR> DEFINE REC-ID CHAR*4 = "0010"<BR><BR> DEFINE CHARGES CHAR*14 = "" <BR> <BR> DEFINE C-LLC CHAR*14 = **something<BR><BR> DEFINE C-LCC CHAR*14 = **something<BR><BR> DEFINE C-PSX CHAR*2 = **something <BR><BR> DEFINE C-PCD CHAR*3 = **something <BR><BR> DEFINE C-UNT CHAR*8 = **something <BR><BR><BR> DEFINE RECORD-DAS CHAR*183 = DEK OF NS-RECORD + & <BR> BNI OF PD-RECORD + &<BR> MULT$S_OF_PTS OF NS-RECORD + & <BR> CHARGES + &<BR> C-LLC + &<BR> C-LCC + & <BR> FRA OF NS-RECORD + &<BR> C-PSX + &<BR> C-PCD + & <BR> ESG OF NS-RECORD + &<BR> C-UNT + &<BR> WCP OF NS-RECORD + & <BR> WC2 OF NS-RECORD + &<BR> PST OF NS-RECORD + &<BR> MAS OF CB-RECORD + & <BR> CUM OF CB-RECORD <BR> <BR> DEFINE NLSVINT CHAR*1= "N" IF NLSR$S_OF_PTS OF NS-RECORD = "N" ELSE "Y"<BR><BR><BR> SUBFILE $PIC_DATA/OPNLSVINT1 KEEP &<BR> INCLUDE REC-ID, &<BR> PRN OF NS-RECORD, & <BR> CAT OF NS-RECORD, &<BR> MER OF NS-RECORD, &<BR> RECORD-DAS, & <BR> NLSVINT &<BR> INDEX PRN UNIQUE &<BR> SEGMENT PRN<BR><BR clear=all>When I create this subfile for the first time, sho item command displays: <BR>REC-ID CHAR X(4)<BR>* PRN CHAR X(12)<BR> CAT CHAR X(12)<BR> MER CHAR X(12)<BR> RECORD-DAS CHAR X(183)<BR> NLSVINT CHAR X(1)<BR><BR><BR>In the first run, to compare data of previous day, we create one more subfile:<BR> ACCESS *$PIC_DATA/OPNLSVINT1 <BR><BR> SELECT IF REC-ID <> REC-ID <BR><BR> SUBFILE $PIC_DATA/OPNLSVINT2 KEEP APPEND &<BR> INCLUDE OPNLSVINT1 & <BR> INDEX PRN UNIQUE &<BR> SEGMENT PRN<BR><BR><BR><BR>At the end of job execution it renames OPNLSVINT1 to OPNLSVINT2 ( .dat,.sfd,.idx ) and creates OPNLSVINT1 next day with comparison with OPNLSVINT2 of previous day. <BR>And when I run the job again...., and the do a sho ite command, it displays:<BR><BR>OPNLSVINT2 TYPE SCALE SCALE DEC PICTURE<BR> REC-ID CHAR X(4)<BR>* PRN CHAR X(12)<BR> CAT CHAR X(12)<BR> MER CHAR X(12)<BR> NLSVINT CHAR X(1)<BR> RECORD-DAS CHAR X(183)<BR><BR>As you the single character flag precedes the 183 character item now.. which automatically changes the Layout(data in output).<BR>Could anyone provide any comment/hints to fix this? <BR><BR>Sorry if I'm spamming your mail box. :-)<BR><BR>Thanks in advance.<BR><BR>Regards,<BR>Vamsi<BR><BR>-- <BR>"Nothing is impossible as impossible itself says i m possible" </BLOCKQUOTE><br /><hr />Discover a magical Christmas destination. <a href='http://asksanta.ca/?icid=SANTAENCA005' target='_new'>Visit asksanta.ca today!</a></body>
</html>