Max number of files read in a folder by OV_FILE_SERVICE

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
dvanoni
Posts: 27
Joined: Wed Dec 02, 2015 3:47 am
Location: Chiasso - Switzerland

Max number of files read in a folder by OV_FILE_SERVICE

Post by dvanoni » Mon Jun 17, 2019 4:02 pm

Hi all,

what is the max number of files read in a folder by OV_FILE_SERVICE (GET_DIR) using a list with Entrys(*MAX)? Sometimes I got an error and it is due because there are too many files in the folder.

Thanks

Code snippet

Code: Select all

Def_List Name(#WLIST) Fields(#OV_NAME #OV_PREFIX #OV_SUFFIX #OV_DATE #OV_TIME #OV_SIZE #OV_ISDIR) Type(*WORKING) Entrys(*MAX)
Use Builtin(OV_FILE_SERVICE) With_Args(GET_DIR #OV_DIRECT) To_Get(#OV_RETC #OV_ERRN #WLIST)

soa
Posts: 302
Joined: Mon Dec 07, 2015 3:15 pm

Re: Max number of files read in a folder by OV_FILE_SERVICE

Post by soa » Mon Jun 17, 2019 4:55 pm

From memory this is an RDML function which returns a working list do the maximum must be 9999.

MarkD
Posts: 626
Joined: Wed Dec 02, 2015 9:56 am

Re: Max number of files read in a folder by OV_FILE_SERVICE

Post by MarkD » Mon Jun 17, 2019 5:02 pm

Is your code fragment from an RDML or RDMLX function?

Could you post some details of the error you get?

Post Reply