Procedure CalcBitPos is called on line 9099, and it appears to return an incorrect value for wkByteNo. I do not have the source. Is is possible to include it in your next reply?
I did find a ip address that was wrong. The debug showed in the error message field that it could not connect.
I have run the program the whole day and it did give me the same message again after a number of hours.
I am trying to get the program to give another error so I can try to track that.
Would that be the reason for that message?
The instruction is attempting to assign wkByte the value of the 125th byte (the value of wkByteNo) of string peFDSet. Based on the error message I would say peFDSet is less than 125 bytes in length. How is peFDSet defined?
The error line is…..
PEFD = 1017
WKBYTENO = 125
WKMASK = '■'
PEFDSET = '■■■■■■■■■■■■■■■■■■■■■■■■■■■■'
Program: FTPAPIR4 Library: LIBFTP Module: FTPAPIR4
9096 wkByteNo S 5I 0
9097 wkMask S 1A
9098 wkByte S 1A
9099 callp CalcBitPos(peFD:wkByteNo:wkMask)
9100 eval wkByte = %subst(peFDSet:wkByteNo:1)
9101 biton wkMask wkByte
9102 eval %subst(peFDSet:wkByteNo:1) = wkByte
9107 Set a File Descriptor in a set OFF... for use w/Select()
9109 peFD = descriptor to set off
9110 peFDSet = descriptor set
Debug . . .
Message ID . . . . . . : RNX0100 Severity . . . . . . . : 50
Message type . . . . . : Diagnostic
Date sent . . . . . . : 11/09/17 Time sent . . . . . . : 12:10:42
Message . . . . : Length or start position is out of range for the string
Cause . . . . . : One of the following has occurred in RPG procedure FD_SET
in program LIBFTP/FTPAPIR4:
- A numeric length or start position is less than 1 or too large for the
- The search-argument parameter of the %SCAN built-in function has zero
length or is longer than the source-string parameter.
- The maximum-length parameter of the %STR built-in function is not a value
between 1 and the maximum size of a character field.
Recovery . . . : Contact the person responsible for program maintenance to
determine the cause of the problem.
Put your cursor on the “Length or position …” message and press F1. This will give you more information about the error.
Then press F9 to get the name of the program and the line number of the instruction that caused the error. This will give you the name of the variable which contains the out of range value.
Finally, reply to the message with a D instead of C to get a program dump. This will give you the value of the variable.
I am getting an error message and I am wondering if you know why
Object already exists. Object is /DL/BOEDATA.
Object checked in.
Print request completed processing normally.
Object checked in.
Object already exists. Object is /NV.
Object already exists. Object is /NV/CARGOWISEDOCS.
Object already exists. Object is /NV/CARGOWISEDOCS/ARCHIVE2017-09-07.
0: FTPAPI version 2.3 released on 2010-05-27
Length or start position is out of range for the string operation.
The call to FTP_LOGIN ended in error (C G D F).
Application error. RNX0100 unmonitored by FTPAPIR4 at statement
Any help in me finding this cause will be most helpful
e: firstname.lastname@example.org | t+27 (11) 012 8799
This email is subject to our confidentiality provisions – available here: Confidentiality Statement
To find a WiseTech Global office or learn more about our company and our products visit our website:
P We are a carbon neutral company. Please consider the environment before printing.
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi