Netcobol cobol command reply "Argument is not valid"

342 Views Asked by At

On Solaris10 x86 64bit version, I installed Fujistu NetCobol, and executed "cobol" command. Result OS replies "Argument is not valid".

I used this cobol command, following the example in the user's guide.

$cobol -dy -M -o P1 P1.cob

Is there anything missing--some setting that I have overlooked?

I have confirmed the following:

  • cobol with x authority
  • cobol in PATH Environment variable
  • Environment variable setting after NetCobol installing
1

There are 1 best solutions below

3
On BEST ANSWER

That error often means you are trying to run a SPARC binary on an x86 system, which would make sense as Fujitsu produces SPARC servers. To verify what platform the binary is for, run:

% file `which cobol`

(or file /opt/something/bin/cobol if you know the direct path to the binary.)