The naming threw me off, too. /uv/CODE is the UV account, and BP is the directory with the source code; so BASIC BP FLAVOR.R0 is the correct syntax.
Did you create the BP directory via CREATE.FILE, or did you use mkdir at the Unix level and use vi (or some such editor) to create the source code within this directory? If the latter, then it is missing the file pointer in the VOC, as well as a dictionary. The dictionary isn't critical for compiling, just makes it easier to list stuff! :-) Assuming it was created via mkdir at the Unix level, you can create a VOC entry for it. (Please forgive me if I'm about to tell you things you already know!) The entry's name should be BP, line 1 should be F, and line two should be BP. You should be able, then, to execute the command BASIC BP FLAVOR.R0. I created a similar environment in UV (version 10.0....older legacy system!), with a Unix-level created BP and a source file named FLAVOR.R0 created with vi. Here's what I got, and how I "fixed" it: >BASIC BP FLAVOR.R0 Unable to open "BP" file. >ED VOC BP New record. ----: I 0001= F 0002= BP 0003= Bottom at line 2. ----: FI "BP" filed in file "VOC". >BASIC BP FLAVOR.R0 Creating file "BP.O" as Type 19. Creating file "D_BP.O" as Type 3, Modulo 1, Separation 2. Added "@ID", the default record for RetrieVe, to "D_BP.O". Compiling: Source = 'BP/FLAVOR.R0', Object = 'BP.O/FLAVOR.R0' Compilation Complete. > Note that the directory for the run files was automatically created. You can drop back to Unix, copy D_BP.O to D_BP, then add D_BP as the third line in the VOC entry for BP, and you'll have your dictionary for it! HTH Drew -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Tom Dodds Sent: Tuesday, October 19, 2010 9:03 PM To: U2 Users List Subject: Re: [U2] Compiling 101 Good try, First off when you created the file, CODE, you had to be sure to create a Type 1 on Type 19 file. These are really Unix directories and accessible to the basic compiler which is a Unix program. Secondly the compile command, in your case would be "BASIC CODE FLAVOR.RO. The second argument is the name of the directory where you placed your source code and the third is the program name as you have already surmised. HTH Tom Dodds [email protected] 630.235.2975 On Oct 19, 2010, at 7:29 PM, Bill Brutzman wrote: > I created a new UV account > /u2/CODE > > I put a program in /u2/CODE/BP/FLAVOR.R0. > I was not able to compile the program. > > When I ran the command >BASIC BP FLAVOR.R0 > I obtained an error message > Unable to open "BP" file. > > I did a Unix CHMOD command on the parent folders and the file > to 777 but still get the same error. > I suppose that it is a Q pointer PATH thing. > Help would be appreciated. > > --Bill > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
