PROC is sooo last century!
Anything PROC can do, BASIC can to better, faster, less cryptic, easier to
write, easier to maintain, easier to debug, etc, ad nauseum.
How do you know BASIC can't create the file? Did you try it? Post the code
you tried and I will show you the error of your ways ;-)
What jBASE version are you on? If it's 3.4 then you need 'openseq_creates =
true' in your 'Config_EMULATE' file. If it's 4.1 (or 5.x) then this code
should work:
OPENSEQ filepath TO outstream ELSE
CREATE outstream ELSE NULL
END
Dan
On Wed, Apr 21, 2010 at 7:41 PM, wsw <[email protected]> wrote:
> The problem is I want to create the file and then write to it. jbasic
> won't create the file so I thought ok maybe PROC will create the file.
> No such luck. If I put the file out there manually (Samba Server) then
> I can write to it with no problem.
>
> The application is already written in PROC or trust me I'd be using
> jbasic, lol.
>
> Jim: Sometimes (in this case) all it takes is another set of eyes to
> see the obvious!
>
> Thanks guys.
>
> On Apr 20, 5:11 pm, Charlie Noah <[email protected]> wrote:
> > WW,
> >
> > Can I be the first to ask: Why do you want to do this in a proc when it
> > would be so easy in Basic (especially since you'll be writing to that
> > file in Basic anyway)?
> >
> > Also, I know Jim's going to remind you about the posting guidelines. :-)
> >
> > Regards,
> > Charlie Noah
> > Inland Truck Parts
> >
> > wsw wrote, On 04/20/2010 02:43 PM:
> >
> >
> >
> >
> >
> > > I'm trying to create a text file in PROC and then write to that file
> > > via jbasic. I tried the following but the file is never created and I
> > > don't get an error:
> >
> > > F-CLEAR 12
> > > F-OPEN 12 "/data/txtfiles/scanpr/scan.txt"
> > > MV &12.1 "Scan stuff"
> > > F-WRITE 12
> > > F-CLOSE 12
> >
> > > Does anyone know how I can accomplish this in PROC
> >
> > > Thanks in advance,
> >
> > > WW
> >
> > --
> > Please read the posting guidelines at:
> http://groups.google.com/group/jBASE/web/Posting%20Guidelines
> >
> > IMPORTANT: Type T24: at the start of the subject line for questions
> specific to Globus/T24
> >
> > To post, send email to [email protected]
> > To unsubscribe, send email to [email protected]
> > For more options, visit this group athttp://
> groups.google.com/group/jBASE?hl=en- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> Please read the posting guidelines at:
> http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> IMPORTANT: Type T24: at the start of the subject line for questions
> specific to Globus/T24
>
> To post, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit this group at
> http://groups.google.com/group/jBASE?hl=en
>
--
Please read the posting guidelines at:
http://groups.google.com/group/jBASE/web/Posting%20Guidelines
IMPORTANT: Type T24: at the start of the subject line for questions specific to
Globus/T24
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en