Bcp Error Code 65280
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of exit code 65280 in unix this site About Us Learn more about Stack Overflow the company Business Learn
Exit Code 65280 Linux
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question exit code 65280 in informatica x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Perl error code 65280 in unix system() call failed with return code 65280 up vote 2 down vote favorite I the code below, I can run $retCode = ClearCase($cmd); with no error, but return 65280 when run this: $retCode = ClearCase($logcmd); I tried on XP and Windows 2003 server, same result, all with ActiveState Perl v5.14.2. This code was working 2 years ago somewhere else. Thanks Jirong $g_HPPC_DEV_DRIVE =
Error Code 65280 In Informatica
"M"; $g_HPPC_DEV_VIEW = "bldforge_AOMS_DEV"; $g_logfile = "logfile.txt"; $cmd = "startview $g_HPPC_DEV_VIEW"; $logcmd = $cmd . " >> $g_logfile 2>>&1"; $targetDir = $g_HPPC_DEV_DRIVE . ":\\" . $g_HPPC_DEV_VIEW; print "\$targetDir = $targetDir\n"; print "Starting view .......\n"; #$retCode = system("cleartool startview bldforge_AOMS_DEV >> logfile.txt"); #$retCode = `cleartool startview bldforge_AOMS_DEV`; $retCode = ClearCase($logcmd); #$retCode = ClearCase($cmd); sub ClearCase { my $retCode = 0; my $args = $_[0]; my $cmd = "cleartool " . $args; $retCode = Execute($cmd); return $retCode; } sub Execute { my $retCode = 0; my $cmd = $_[0]; if ($g_HPPC_BUILD_SIMULATION ne "Y") { print("Execute() Running...: $cmd\n"); $retCode = system($cmd); #$retOut = `$cmd`; #$retCode = $?; #print("Command execute output: $retOut\n"); } else { print("Execute() *** SIMULATION: $cmd\n"); } print("Execute() retCode = $retCode, $cmd\n"); return $retCode; } windows perl clearcase cleartool share|improve this question edited Aug 16 '12 at 17:24 DavidO 11.1k32651 asked Aug 16 '12 at 14:20 user1288329 4016 You should use autodie or check $! to see if you get anything more descriptive. Probably, though, "clearcase" is broken for some reason and you'll need to start your investigation with that rather than your Perl code. –zostay Aug 16
to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the linux return code 65280 forum that you want to visit from the selection below. Results 1 to ssh return code 65280 5 of 5 Thread: Return Codes for Sybase BCP Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread
65280 Cpt
Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 05-07-02,13:43 #1 tho View Profile View Forum Posts Registered User Join Date Feb 2002 Posts 16 Unanswered: Return Codes for Sybase http://stackoverflow.com/questions/11989196/perl-system-call-failed-with-return-code-65280 BCP Hi guys I was wondering if you could help me. I have been trying to do some test relating to BCP. I have been trying to BCP into a database table some data (484 rows) from a data file. I have manipulated 2 rows from this data file in order to fail the BCP process. The BCP process bulk copies 482 rows into the table as expected. How can http://www.dbforums.com/showthread.php?372602-Return-Codes-for-Sybase-BCP I determine the return code for this BCP process I had executed ? Does BCP return any return code despite finding bad data along the way as I have explained above ? I have been developing a Perl program to determine this return code and it always return me zero value. I am assuming zero value means the BCP was successful. Is this correct ? I would be most grateful for any advice Many thanks Tony Reply With Quote 05-09-02,08:39 #2 MattR View Profile View Forum Posts Visit Homepage Registered User Join Date Mar 2001 Location Lexington, KY Posts 606 I am not sure if it returns an error code, check the documentation here: http://manuals.sybase.com/onlinebook...util/@ebt-link;pt=1806?target=%25N%15_10086_START_RESTART_N%25 Your most reliable bet would be to read the error log it creates: http://manuals.sybase.com/onlinebook...kTextView/6057;pt=6057#X Thanks, Matt Reply With Quote 05-19-02,11:41 #3 rayvid123 View Profile View Forum Posts Junior Member Join Date May 2002 Posts 11 Re: Return Codes for Sybase BCP Tho, U can use Unix scripts for your above query. This is how you can do this: bcp .... > outputfile egrep a word from output file that you see when 2 rows are not copied to the Sybase server. If you find an occurrence of this word more than
piped command with file pathnames etc. This is called using system() but it always fails with exit code 65280 and the warning, "Can't init outfile 'my_outfile'". However, when I run the same command from the http://coding.derkeiler.com/Archive/Perl/comp.lang.perl.misc/2007-11/msg01144.html shell everything is fine and the file is written. The destination is writable by all. There don't seem to be any permissions problems. What am I missing? The error message isn't a Perl error - it's coming from the tools you're calling. Without seeing your code it's difficult to do more than guess, but one thing I would do is double-check the value code 65280 of $convert_command, to make absolutely certain it's right. With Perl and shells interpolating variables into strings, and sharing many of the same escape sequences in quoted string constants, that's an easy place for bugs to sneak in. Also, the return value from system() isn't just the return value of the called command; it's that, plus some other stuff. You need to jump through code 65280 in a few hoops to get the actual exit status, as shown in "perldoc -f system": You can check all the failure possibilities by inspecting $? like this: if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died with signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "child exited with value %d\n", $? >> 8; } Once you get the real exit code from the tool you're calling, then you can find the meaning of that code (and the accompanying "Can't init" message) in the tool's docs. sherm-- -- WV News, Blogging, and Discussion: http://wv-www.com Cocoa programming in Perl: http://camelbones.sourceforge.net . Follow-Ups: Re: Failed with exit code 65280. From: lbo_user References: Failed with exit code 65280. From: lbo_user Prev by Date: Re: Google bad, Yahoo good Next by Date: Re: Google bad, Yahoo good Previous by thread: Re: Failed with exit code 65280. Next by thread: Re: Failed with exit code 65280. Index(es): Date Thread Flag as inappropriate (AWS) Security UNIX Linux Coding Usenet ArchiveAboutPrivacyImprint coding.derkeiler.com >Archive >Perl >comp.lang.perl.misc >2007-11