× Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...

Error 22 during READ_ERROR

  • lion.of.arabia
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
17 years 10 months ago #248 by lion.of.arabia
Error 22 during READ_ERROR was created by lion.of.arabia
I am running a NOFILE Enquiry on a G13.2.07 system.

In the enquiry, when I specify a LD ID I get the correct results, but when I don?t (SELECT ALL) I get the following:


Error 22 during READ_ERROR to file ../bnk.data/st/FBNK.CUST000
Enter I to ignore error, R to retry the READ_ERROR or Q to Quit :

My code is:

006 $INSERT I_F.CUSTOMER

032 FN.CUST = 'F.CUSTOMER'
F.CUST = ''
CALL OPF(FN.CUST,F.CUST)

106 R.CUST = ''
107 CUST.ERR =''
108 CALL F.READ(FN.CUST,Y.CUSTOMER.ID,R.CUST,F.CUST,CUST.ERR)
109
110 Y.CUST.NAME = R.CUST<EB.CUS.SHORT.NAME>


?.. ANY IDEAS? How can I fix it?
I also tried the following: ....
jsh infotech ~ -->jstat FBNK.CUSTOMER
File ../bnk.data/st/FBNK.CUST000
Type=J4 , Hash method = 4
Groups = 10113 , Frame size = 4096 bytes , Secondary Record Size = 8192 bytes



jBASE: Unable to allocate -1059536692 bytes, errno = 12 at jediFileIO.c,4593(jstat.b,1)
../bnk.data/st/FBNK.CUST000: Cannot allocate memory

Record Count = 41770 , Record Bytes = 15419063

Bytes/Record = 369 , Bytes/Group = 1524

Primary file space: Total Frames = 4618 , Total Bytes = 15419063

Secondary file space: Total Frames = 0 , Total Bytes = 0


I have FULL permissions:



ls -l ../bnk.data/st/FBNK.CUST000

-rwxrwxrwx 1 jdemo 502 48701440 Apr 18 14:14 ../bnk.data/st/FBNK.CUST000

?.am I missing anything

Please Log in or Create an account to join the conversation.

More
17 years 10 months ago #249 by takoor
Replied by takoor on topic Error 22 during READ_ERROR
yes
_________________
takoor

Please Log in or Create an account to join the conversation.

More
17 years 10 months ago #252 by malai
Replied by malai on topic Error 22 during READ_ERROR
Could you post your full code here?
So that we can easily fix it.

Create a jBASE file using CREATE-FILE and copy all the CUSTOMER records and change the VOC to point the newly created file.

Then try, hope your problem will be solved.
_________________
M A L A I

Please Log in or Create an account to join the conversation.

  • lion.of.arabia
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
17 years 10 months ago #250 by lion.of.arabia
Replied by lion.of.arabia on topic Error 22 during READ_ERROR
Great.... And I thought this was Jbase/Globus feature


maybe I should type SET EROR_22=OFF at the jbase prompt



Seriously though, what am I missing?

Please Log in or Create an account to join the conversation.

More
17 years 10 months ago #251 by madhan219
Replied by madhan219 on topic Error 22 during READ_ERROR
Hi Lion,

First of all can you please let me know whether this error occurs all the time you try this Enquiry or is tat specific for LD alone..

If so, I may ask you to RESIZE the file FBNK.CUSTOMER.

The 'jstat' output says tat
'jBASE: Unable to allocate -1059536692 bytes, errno = 12 at jediFileIO.c,4593(jstat.b,1)
../bnk.data/st/FBNK.CUST000: Cannot allocate memory'

It creates the doubt. So Kindly try resizing the file and try out.
_________________
Regards,
Madhan Kumar. M

Please Log in or Create an account to join the conversation.

More
17 years 10 months ago #253 by shenbasp2002
Replied by shenbasp2002 on topic Error 22 during READ_ERROR
Hi,

Based on the info, i feel the problem may be becoz of overflow of records in the CUSTOMER file.

Hope this can be solved by resizing the files... Try to resize the CUSTOMER file and check it out...

Regards,
Shenba

Please Log in or Create an account to join the conversation.

More
17 years 2 months ago #254 by fatkat
Replied by fatkat on topic Error 22 during READ_ERROR
Same error.

I resized and it works!

Thanks!
_________________
fatkat
skype: fatkat6806
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #255 by sharathnp
Replied by sharathnp on topic Error 22 during READ_ERROR
Please let us know your Jbase version,bcoz the releases prior to Jbase 4.5.1 have the limit of 2gb,if your on Unix you can uprgrade jbase or with the current jbase you need to distribute the files.

Please Log in or Create an account to join the conversation.

Time to create page: 0.122 seconds