jBase Open file Fails with Error 128 in the .b File

147 views
Skip to first unread message

Achyuth Balakrishnan

unread,
Jun 15, 2018, 11:17:59 AM6/15/18
to jBASE
Hi,

I have a .b file, in which I am trying to open a jBase file with the below syntax. But it fails with error: 128 (which means 'No such file or directory')
OPEN "MODULE.METHODS.SOURCE" TO ibfvar SETTING openErr ELSE
  PRINT "Could not open '":ibfile:"': ":openErr
  GOSUB HELP
STOP

The JEDIFILEPATH environment variable is set to the folder location where this jBase file is..
The MODULE.METHODS.SOURCE is a jBase extended Object. In the MD file setting the fourth Ordinal to "1" means it is an extended Object.

MD file entry is as below. 
D:\Jenkins\workspace\MODULE64_Snapshot>ed MD MODULE.METHODS.SOURCE
MODULE.METHODS.SOURCE
TOP
.P
TOP
001 Q
002 MODULE
003 OBJ\METHODS]MSOURCE
004 1
BOTTOM
.

The SYSTEM file entry is as below
D:\Jenkins\workspace\MODULE64_Snapshot>ed SYSTEM MODULE
MODULE
TOP
.P
TOP
001 D
002 D:\Jenkins\workspace\MODULE64_Snapshot
BOTTOM
.

Both the MD and SYSTEM files are in the same folder (D:\Jenkins\workspace\MODULE64_Snapshot) which is set by the below environment variables.
The MODULE.METHODS.SOURCE folder is in the folder D:\Jenkins\workspace\DPS64_Snapshot\OBJ
set HOME=D:\Jenkins\workspace\MODULE64_Snapshot
set JEDIFILENAME_MD=%HOME%\MD
set JEDIFILENAME_SYSTEM=%HOME%\SYSTEM
set EXIT=%HOME%\OBJ
set JEDIFILEPATH=%HOME%;%HOME%\OBJ

The below line of code when I try to OPEN with the complete path, it works fine.
OPEN "D:\Jenkins\workspace\MODULE64_Snapshot\OBJ\METHODS]MSOURCE" TO ibfvar SETTING openErr ELSE

Can someone please help.

Thank you
Achyuth



pat

unread,
Dec 19, 2018, 10:52:54 AM12/19/18
to jBASE
So, taking this a step at a time

OPEN 'file' ...

Reads the Definition from the MD for 'file'

Reads the 'Account Definition' from the 'SYSTEM' file

Builds the path to the requested file :

'D:\Jenkins\workspace\MODULE64_Snapshot' : DIR_DELIM : 'OBJ\METHODS]MSOURCE'

So, in theory, identical to the working example where you provide the 'full file path'

Are there any ( redundant ) 'spaces' [ or 'tabs' etc ] in either the 'SYSTEM MODULE' entry or 'MD MODULE.METHODS.SOURCE' item ?

[ Use 'H', in 'ED' to see the Hex value of the contents [ '09' is tab, '20' is Space etc ] ]

Bruce Willmore

unread,
Dec 20, 2018, 9:32:55 AM12/20/18
to jBASE
Just brainstorming here, but could it be that problem is because the Q-Pointer is referencing part of a path “OBJ\METHODS]MSOURCE” instead of just a file name “METHODS]MSOURCE”? I never tried setting up a Q-pointer like that before, and so I’m not sure.
--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Achyuth Balakrishnan

unread,
Dec 20, 2018, 9:32:57 AM12/20/18
to jb...@googlegroups.com
Hi Pat,

Thank you so much for the reply. I am not working on it anymore. I found a workaround to bypass this issue. I just tried removing the 4th Ordinal (the value 1) and it worked fine.
Not sure if that is the right approach, but it served my purpose.

Once again appreciate your efforts in replying to my query. 

Regards
Achyuth



--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "jBASE" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jbase/p_k1OMU3_-s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jbase+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Regards,
Achyuth Balakrishnan
Bangalore



pat

unread,
Jan 2, 2019, 1:12:50 PM1/2/19
to jBASE
Could be Bruce [ well spotted ]

Possibly because the Q-pointer contains the Windows 'directory delimiter' '\' [ which in 'C' is taken as 'treat the following character as it's literal value, ie the '\' is no longer treated as a Windows Directory delimiter ]


Happy New Year all
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages