and if you do a net view on that print server the share shows up with the same name? There doesnt seem to be anything wrong with the code you posted. I think error 2 is 'The system cannot find the file specified', so more than likely the printer isnt getting created in the first place. Try something like this to see what all is happening..

Code:
ADDPRINTERCONNECTION ("\\server\ypnt02")
? ""+@Error+" - "+@SError
ADDPRINTERCONNECTION ("\\server\fs-1800n")
? ""+@Error+" - "+@SError
SETDEFAULTPRINTER ("\\server\fs-1800n")
? ""+@Error+" - "+@SError