Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File transfer Status becoming ZERO

Status
Not open for further replies.

VikramChand

Programmer
Jul 5, 2002
16
US
Hi,

I have been trying to capture file transfer status with $XFERSTATUS for last 2 days but was not successfull.

I have listed the code i have been using in my script.

sendfile ZMODEM sendfilename
iStatus1 = $XFERSTATUS
while iStatus1 == 1
yield
iStatus1 = $XFERSTATUS
endwhile
if iStatus1 == 2
usermsg "in the file status successful condition"
elseif iStatus1 == 3
usermsg "in the file status aborted condition"
call systemdisconnect
endif

the transfer status is becoming ZERO after it exists the while loop and the istatus1 variable also becomes ZERO.

can some one help me to figure this out?

Thanks
Vikram
 
Try moving yield until after your assignment:

Code:
while iStatus1 == 1
    iStatus1 = $XFERSTATUS   
    yield
endwhile

According to documentation, yield suspends the script, so maybe $XFERSTATUS is changing/reseting before the assignment takes place.

I've never used aspect to transfer files, so I'm grasping at straws here.
 
Thanks for your reply.

I tried doing that but did not work.

i also tried

while iStatus1 == 1
iStatus1 = $XFERSTATUS
yield
iStatus2 = iStatus1
endwhile

still same results.

Regards
Vikram
 
Knob

Is this sufficient?

Receiver Crash Recovery Settings

Crash Recovery Options : IF data/time match
Overwrite Options : Overwrite if incoming newer

sender crach recovery settings

Crach recovery options: Crach recover if the file's
CRCs match otherwise overwrite
Overwrite Options : Disabled

Other Options
transmit Method: Streaming
error Detection : 32 bit CRC

Use local EOL convention: Unchecked
Original File time stamp : Checked

Thanks
Vikram
 
Looks OK to me there. Are you downloading the same filename each time, or is it a unique name every download? Does the file make it down OK (i.e. all there, not a read-only location, etc.)?

 
Knob,

I am actually uploading the file.

Download part looks ok to me.

Thanks
Vikram
 
Knob,

Yes file is making successfully to the remote machine. I have called and confirmed that.

Thanks
Vikram
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top