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? Leo From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Trevor Thompson Hi The error line is….. PEFD = 1017 WKBYTENO = 125 WKMASK = '■' Value 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 9103 E 9104 9105 9106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 9107 Set a File Descriptor in a set OFF... for use w/Select() 9108 9109 peFD = descriptor to set off 9110 peFDSet = descriptor set More... 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 operation. 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 string operation. - 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. From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Leo Burkett 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. Leo From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Trevor Thompson From: Trevor Thompson Hi There I am getting an error message and I am wondering if you know why Object already exists. Object is /DL/BOEDATA. Object checked in. Object copied. Print request completed processing normally. Object checked in. Object copied. 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). C Application error. RNX0100 unmonitored by FTPAPIR4 at statement Any help in me finding this cause will be most helpful Thank you Trevor Thompson South Africa WiseTech GLOBAL e: trevor.thompson@wisetechglobal.com | 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: WiseTech Global | CargoWiseOne P We are a carbon neutral company. Please consider the environment before printing. |
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi