[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] SQR - CALL SYSTEM error codes for Windows OS
Hello
The error codes are the ones given by Windows OS. You can find it in many
development languages
manuals (such as VB, VC, etc...), when you know what you are looking for.
Here is a list of the most common ones taken out from some VB web site :
Private Const ERROR_FILE_NOT_FOUND = 2&
Private Const ERROR_PATH_NOT_FOUND = 3&
Private Const ERROR_BAD_FORMAT = 11&
Private Const SE_ERR_ACCESSDENIED = 5 ' access denied
Private Const SE_ERR_ASSOCINCOMPLETE = 27
Private Const SE_ERR_DDEBUSY = 30 ' DDE interface related
messages
Private Const SE_ERR_DDEFAIL = 29
Private Const SE_ERR_DDETIMEOUT = 28
Private Const SE_ERR_DLLNOTFOUND = 32 ' DLL not found
Private Const SE_ERR_FNF = 2 ' file not found
Private Const SE_ERR_NOASSOC = 31 ' ex: .doc but MS-Word not
installed ?
Private Const SE_ERR_PNF = 3 ' path not found
Private Const SE_ERR_OOM = 8 ' out of memory
Private Const SE_ERR_SHARE = 26
Your error is "File not found". Such errors are raised when :
- obviously you give a full pathname that is not correct AT EXECUTION TIME (is
the target machine
where your code runs configured in the same way than the development machine,
if different ?)
- if you run a program without giving a full pathname, you must have the
program folder listed in
the PATH environment variable of your system.
- If you run a file that is not executable (i.e. if you wish to run a document
file to have it
loaded in it's application), you must always give the full path. Ex : to "run"
("open" would be
more correct in this context) a Word document named "MyFile.doc" located in
"C:\TEMP", you must
call "C:\TEMP\MyFile.doc" and not only "MyFile.doc" even if your program runs
in this folder.
Well... did I forget anything...
Hope this will help you,
Charly
--- Anand_Gupta01 <Anand_Gupta01@infosys.com> wrote :
> Hi
>
>
>
> I am required to invoke a 3rd party software from command line from
> within SQR. I was observing CALL SYSTEM command of SQR, and am stuck up
> at a place.
>
>
>
> CALL SYSTEM USING command status [ WAIT | NOWAIT ]
>
> call system using dir > test1.txt' #NUM ! WAIT
>
> show #NUM
>
>
>
> I am on Windows OS and Peoplebooks say that the returned STATUS should
> be a numeric field. If it is below 32, it implies an error. It is
> continuously returning 2.00000 for all DOS commands. I am unable to
> understand the implications of the error. If any of you can share a list
> of such error codes specific to Windows OS, I will appreciate.
>
>
>
> If any of you have encountered a similar requirement and could resolve
> it, please mail me.
>
>
>
> Thanks
>
> Anand Gupta
> Enterprise Solutions
> Infosys Technologies, Pune
> O: 91 20 22932800
> D: 91 20 22978148
> W: <http://www.infosys.com> www.infosys.com
>
>
>
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
=====
Charly Lebrun
calebrun@yahoo.com
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo!
Messenger sur http://fr.messenger.yahoo.com
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users