I created a very simple spooler program that receives input from the
spooler and writes it to a directory file. I create the FORMQUEUE
with:
SP-CREATE F1 PROG PRINT.PROG
Here is the code for PRINT.PROG
001 INCLUDE JBC.h
002 ID = "1.TXT"
003 DIRECTORY = 'D:\tmp'
004 OPENSEQ DIRECTORY:"\":ID TO S.FILE ELSE NULL
005 *
006 INPUT LINE,1
007 LINE := CHAR(13)
008 WRITESEQ LINE ON S.FILE ELSE NULL
009 WEOFSEQ S.FILE ELSE NULL
010 CLOSESEQ S.FILE
Here is the error I'm getting from the spooler when I do a:
SP-ASSIGN F1
LIST PART (P
jBASE despooler for FORMQUEUE F1
Started at 12:55:32 20 NOV 2009
Starting Job 13 to PRINT.PROG
** Error [ STDIN ] **
Error getting input from STDIN , errno = 0
Line 6 , Source PRINT.PROG.b
Completed
I know the PRINT.PROG program runs and can write to the file because
if I change line 6 to LINE="TEST", it does write the string TEST to
1.txt. It looks like it might be a permissions issue but this is on
development system which has admin rights on everything. Anyone have a
direction they can point me in?
On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
> jBASE 3.4
> Windows 2000
> I created a very simple spooler program that receives input from the
> spooler and writes it to a directory file. I create the FORMQUEUE
> with:
> SP-CREATE F1 PROG PRINT.PROG
> Here is the code for PRINT.PROG
> 001 INCLUDE JBC.h
> 002 ID = "1.TXT"
> 003 DIRECTORY = 'D:\tmp'
> 004 OPENSEQ DIRECTORY:"\":ID TO S.FILE ELSE NULL
> 005 *
> 006 INPUT LINE,1
> 007 LINE := CHAR(13)
> 008 WRITESEQ LINE ON S.FILE ELSE NULL
> 009 WEOFSEQ S.FILE ELSE NULL
> 010 CLOSESEQ S.FILE
> Here is the error I'm getting from the spooler when I do a:
> SP-ASSIGN F1
> LIST PART (P
> jBASE despooler for FORMQUEUE F1
> Started at 12:55:32 20 NOV 2009
> Starting Job 13 to PRINT.PROG
> ** Error [ STDIN ] **
> Error getting input from STDIN , errno = 0
> Line 6 , Source PRINT.PROG.b
> Completed
> I know the PRINT.PROG program runs and can write to the file because
> if I change line 6 to LINE="TEST", it does write the string TEST to
> 1.txt. It looks like it might be a permissions issue but this is on
> development system which has admin rights on everything. Anyone have a
> direction they can point me in?
> IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> To post, send email to jBASE@googlegroups.com
> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
> > jBASE 3.4
> > Windows 2000
> > I created a very simple spooler program that receives input from the
> > spooler and writes it to a directory file. I create the FORMQUEUE
> > with:
> > Here is the error I'm getting from the spooler when I do a:
> > SP-ASSIGN F1
> > LIST PART (P
> > jBASE despooler for FORMQUEUE F1
> > Started at 12:55:32 20 NOV 2009
> > Starting Job 13 to PRINT.PROG
> > ** Error [ STDIN ] **
> > Error getting input from STDIN , errno = 0
> > Line 6 , Source PRINT.PROG.b
> > Completed
> > I know the PRINT.PROG program runs and can write to the file because
> > if I change line 6 to LINE="TEST", it does write the string TEST to
> > 1.txt. It looks like it might be a permissions issue but this is on
> > development system which has admin rights on everything. Anyone have a
> > direction they can point me in?
> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> > To post, send email to jBASE@googlegroups.com
> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> Reviewed 45 pages of output, still can't find the answer
> Any more clues ?
> Pat.
> On 23 Nov, 18:19, Daniel Klein <danielklei...@gmail.com> wrote:
>> Usehttp://jbase.markmail.organd search for 'spooler'. The answer is
>> there.
>> Dan
>> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
>>> jBASE 3.4
>>> Windows 2000
>>> I created a very simple spooler program that receives input from the
>>> spooler and writes it to a directory file. I create the FORMQUEUE
>>> with:
>>> SP-CREATE F1 PROG PRINT.PROG
>>> Here is the code for PRINT.PROG
>>> 001 INCLUDE JBC.h
>>> 002 ID = "1.TXT"
>>> 003 DIRECTORY = 'D:\tmp'
>>> 004 OPENSEQ DIRECTORY:"\":ID TO S.FILE ELSE NULL
>>> 005 *
>>> 006 INPUT LINE,1
>>> 007 LINE := CHAR(13)
>>> 008 WRITESEQ LINE ON S.FILE ELSE NULL
>>> 009 WEOFSEQ S.FILE ELSE NULL
>>> 010 CLOSESEQ S.FILE
>>> Here is the error I'm getting from the spooler when I do a:
>>> SP-ASSIGN F1
>>> LIST PART (P
>>> jBASE despooler for FORMQUEUE F1
>>> Started at 12:55:32 20 NOV 2009
>>> Starting Job 13 to PRINT.PROG
>>> ** Error [ STDIN ] **
>>> Error getting input from STDIN , errno = 0
>>> Line 6 , Source PRINT.PROG.b
>>> Completed
>>> I know the PRINT.PROG program runs and can write to the file because
>>> if I change line 6 to LINE="TEST", it does write the string TEST to
>>> 1.txt. It looks like it might be a permissions issue but this is on
>>> development system which has admin rights on everything. Anyone
>>> have a
>>> direction they can point me in?
>>> IMPORTANT: Type T24: at the start of the subject line for
>>> questions specific to Globus/T24
>>> To post, send email to jBASE@googlegroups.com
>>> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>>> For more options, visit this group athttp://groups.google.com/ >>> group/jBASE?hl=en
> IMPORTANT: Type T24: at the start of the subject line for questions
> specific to Globus/T24
> To post, send email to jBASE@googlegroups.com
> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
> If it's always the same text file then simply create a printer in
> windows that spools to a file...
> When creating the printer in windows choose a generic text print
> driver, create a new port and type on the full path to the file you
> want to create...
> Hope this helps...
> ---------------------------------
> Simon Verona
> Director
> Dealer Management Services Ltd
> Sent from my iPhone
> On 23 Nov 2009, at 20:20, pat <pat...@gmail.com> wrote:
> > Been there.
> > Reviewed 45 pages of output, still can't find the answer
> > Any more clues ?
> > Pat.
> > On 23 Nov, 18:19, Daniel Klein <danielklei...@gmail.com> wrote:
> >> Usehttp://jbase.markmail.organdsearch for 'spooler'. The answer is
> >> there.
> >> Dan
> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
> >>> jBASE 3.4
> >>> Windows 2000
> >>> I created a very simple spooler program that receives input from the
> >>> spooler and writes it to a directory file. I create the FORMQUEUE
> >>> with:
> >>> Here is the error I'm getting from the spooler when I do a:
> >>> SP-ASSIGN F1
> >>> LIST PART (P
> >>> jBASE despooler for FORMQUEUE F1
> >>> Started at 12:55:32 20 NOV 2009
> >>> Starting Job 13 to PRINT.PROG
> >>> ** Error [ STDIN ] **
> >>> Error getting input from STDIN , errno = 0
> >>> Line 6 , Source PRINT.PROG.b
> >>> Completed
> >>> I know the PRINT.PROG program runs and can write to the file because
> >>> if I change line 6 to LINE="TEST", it does write the string TEST to
> >>> 1.txt. It looks like it might be a permissions issue but this is on
> >>> development system which has admin rights on everything. Anyone
> >>> have a
> >>> direction they can point me in?
> >>> IMPORTANT: Type T24: at the start of the subject line for
> >>> questions specific to Globus/T24
> >>> To post, send email to jBASE@googlegroups.com
> >>> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> >>> For more options, visit this group athttp://groups.google.com/ > >>> group/jBASE?hl=en
> > IMPORTANT: Type T24: at the start of the subject line for questions
> > specific to Globus/T24
> > To post, send email to jBASE@googlegroups.com
> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
Thanks Dan I did search through previous postings for "Spooler" before
I posted. I didn't see anything that addresses this particular error.
What I did find was how to create a program that the spooler will pass
input to which I can successfully do based on what I wrote below. The
problem seems to be with my program receiving the input via the INPUT
or IN statement documented below.
On Nov 23, 10:19 am, Daniel Klein <danielklei...@gmail.com> wrote:
> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
> > jBASE 3.4
> > Windows 2000
> > I created a very simple spooler program that receives input from the
> > spooler and writes it to a directory file. I create the FORMQUEUE
> > with:
> > Here is the error I'm getting from the spooler when I do a:
> > SP-ASSIGN F1
> > LIST PART (P
> > jBASE despooler for FORMQUEUE F1
> > Started at 12:55:32 20 NOV 2009
> > Starting Job 13 to PRINT.PROG
> > ** Error [ STDIN ] **
> > Error getting input from STDIN , errno = 0
> > Line 6 , Source PRINT.PROG.b
> > Completed
> > I know the PRINT.PROG program runs and can write to the file because
> > if I change line 6 to LINE="TEST", it does write the string TEST to
> > 1.txt. It looks like it might be a permissions issue but this is on
> > development system which has admin rights on everything. Anyone have a
> > direction they can point me in?
> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> > To post, send email to jBASE@googlegroups.com
> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
Are the prints being generated from a basic prog? or could this be anything ?
We do this by SP-ASSIGNing to a Held spool device, and then picking up the spooler file from the spooler after closing the print job. If this would work for you I can find some sample code..
CLIF wrote:
> Thanks Simon, but no I don't want to use the same text file, I only
> used the same text file for simplicity in explaining my problem.
> On Nov 23, 12:47 pm, Simon Verona <si...@dmservices.co.uk> wrote:
>> If it's always the same text file then simply create a printer in
>> windows that spools to a file...
>> When creating the printer in windows choose a generic text print
>> driver, create a new port and type on the full path to the file you
>> want to create...
>> Hope this helps...
>> ---------------------------------
>> Simon Verona
>> Director
>> Dealer Management Services Ltd
>> Sent from my iPhone
>> On 23 Nov 2009, at 20:20, pat <pat...@gmail.com> wrote:
>>> Been there.
>>> Reviewed 45 pages of output, still can't find the answer
>>> Any more clues ?
>>> Pat.
>>> On 23 Nov, 18:19, Daniel Klein <danielklei...@gmail.com> wrote:
>>>> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
>>>>> jBASE 3.4
>>>>> Windows 2000
>>>>> I created a very simple spooler program that receives input from the
>>>>> spooler and writes it to a directory file. I create the FORMQUEUE
>>>>> with:
>>>>> SP-CREATE F1 PROG PRINT.PROG
>>>>> Here is the code for PRINT.PROG
>>>>> 001 INCLUDE JBC.h
>>>>> 002 ID = "1.TXT"
>>>>> 003 DIRECTORY = 'D:\tmp'
>>>>> 004 OPENSEQ DIRECTORY:"\":ID TO S.FILE ELSE NULL
>>>>> 005 *
>>>>> 006 INPUT LINE,1
>>>>> 007 LINE := CHAR(13)
>>>>> 008 WRITESEQ LINE ON S.FILE ELSE NULL
>>>>> 009 WEOFSEQ S.FILE ELSE NULL
>>>>> 010 CLOSESEQ S.FILE
>>>>> Here is the error I'm getting from the spooler when I do a:
>>>>> SP-ASSIGN F1
>>>>> LIST PART (P
>>>>> jBASE despooler for FORMQUEUE F1
>>>>> Started at 12:55:32 20 NOV 2009
>>>>> Starting Job 13 to PRINT.PROG
>>>>> ** Error [ STDIN ] **
>>>>> Error getting input from STDIN , errno = 0
>>>>> Line 6 , Source PRINT.PROG.b
>>>>> Completed
>>>>> I know the PRINT.PROG program runs and can write to the file because
>>>>> if I change line 6 to LINE="TEST", it does write the string TEST to
>>>>> 1.txt. It looks like it might be a permissions issue but this is on
>>>>> development system which has admin rights on everything. Anyone
>>>>> have a
>>>>> direction they can point me in?
>>>>> IMPORTANT: Type T24: at the start of the subject line for
>>>>> questions specific to Globus/T24
>>>>> To post, send email to jBASE@googlegroups.com
>>>>> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>>>>> For more options, visit this group athttp://groups.google.com/ >>>>> group/jBASE?hl=en
>>> IMPORTANT: Type T24: at the start of the subject line for questions
>>> specific to Globus/T24
>>> To post, send email to jBASE@googlegroups.com
>>> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>>> For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
The important part of the program is where it checks SYSTEM(14) to see
if the spooler is finished.
The part where it builds up and executes the 'cmd' variable is
probably not pertinent for your needs, but the rest of the program can
be used to redirect spooler output to a file by capturing the spooled
output a line-at-a-time and writing it to a sequential file.
Does that help?
Dan
"Rome was not built in a day, but then I was not on that job!"
On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com> wrote:
> Thanks Dan I did search through previous postings for "Spooler" before
> I posted. I didn't see anything that addresses this particular error.
> What I did find was how to create a program that the spooler will pass
> input to which I can successfully do based on what I wrote below. The
> problem seems to be with my program receiving the input via the INPUT
> or IN statement documented below.
> On Nov 23, 10:19 am, Daniel Klein <danielklei...@gmail.com> wrote:
>> Usehttp://jbase.markmail.organd search for 'spooler'. The answer is there.
>> Dan
>> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
>> > jBASE 3.4
>> > Windows 2000
>> > I created a very simple spooler program that receives input from the
>> > spooler and writes it to a directory file. I create the FORMQUEUE
>> > with:
>> > Here is the error I'm getting from the spooler when I do a:
>> > SP-ASSIGN F1
>> > LIST PART (P
>> > jBASE despooler for FORMQUEUE F1
>> > Started at 12:55:32 20 NOV 2009
>> > Starting Job 13 to PRINT.PROG
>> > ** Error [ STDIN ] **
>> > Error getting input from STDIN , errno = 0
>> > Line 6 , Source PRINT.PROG.b
>> > Completed
>> > I know the PRINT.PROG program runs and can write to the file because
>> > if I change line 6 to LINE="TEST", it does write the string TEST to
>> > 1.txt. It looks like it might be a permissions issue but this is on
>> > development system which has admin rights on everything. Anyone have a
>> > direction they can point me in?
>> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> > To post, send email to jBASE@googlegroups.com
>> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> To post, send email to jBASE@googlegroups.com
> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
> The important part of the program is where it checks SYSTEM(14) to see
> if the spooler is finished.
> The part where it builds up and executes the 'cmd' variable is
> probably not pertinent for your needs, but the rest of the program can
> be used to redirect spooler output to a file by capturing the spooled
> output a line-at-a-time and writing it to a sequential file.
> Does that help?
> Dan
> "Rome was not built in a day, but then I was not on that job!"
> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com> wrote:
> > Thanks Dan I did search through previous postings for "Spooler" before
> > I posted. I didn't see anything that addresses this particular error.
> > What I did find was how to create a program that the spooler will pass
> > input to which I can successfully do based on what I wrote below. The
> > problem seems to be with my program receiving the input via the INPUT
> > or IN statement documented below.
> > On Nov 23, 10:19 am, Daniel Klein <danielklei...@gmail.com> wrote:
> >> Usehttp://jbase.markmail.organdsearch for 'spooler'. The answer is there.
> >> Dan
> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
> >> > jBASE 3.4
> >> > Windows 2000
> >> > I created a very simple spooler program that receives input from the
> >> > spooler and writes it to a directory file. I create the FORMQUEUE
> >> > with:
> >> > Here is the error I'm getting from the spooler when I do a:
> >> > SP-ASSIGN F1
> >> > LIST PART (P
> >> > jBASE despooler for FORMQUEUE F1
> >> > Started at 12:55:32 20 NOV 2009
> >> > Starting Job 13 to PRINT.PROG
> >> > ** Error [ STDIN ] **
> >> > Error getting input from STDIN , errno = 0
> >> > Line 6 , Source PRINT.PROG.b
> >> > Completed
> >> > I know the PRINT.PROG program runs and can write to the file because
> >> > if I change line 6 to LINE="TEST", it does write the string TEST to
> >> > 1.txt. It looks like it might be a permissions issue but this is on
> >> > development system which has admin rights on everything. Anyone have a
> >> > direction they can point me in?
> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> >> > To post, send email to jBASE@googlegroups.com
> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> > To post, send email to jBASE@googlegroups.com
> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
On Mon, Nov 23, 2009 at 9:36 PM, CLIF <jb...@bristol.us.com> wrote:
> Yes Dan thats what I thought also but I tried an INPUT,1 and had the
> same result.
> On Nov 23, 6:15 pm, Daniel Klein <danielklei...@gmail.com> wrote:
>> Clif,
>> The error is occurring because you are not telling the program when to
>> stop accepting INPUT from the spooler.
>> The important part of the program is where it checks SYSTEM(14) to see
>> if the spooler is finished.
>> The part where it builds up and executes the 'cmd' variable is
>> probably not pertinent for your needs, but the rest of the program can
>> be used to redirect spooler output to a file by capturing the spooled
>> output a line-at-a-time and writing it to a sequential file.
>> Does that help?
>> Dan
>> "Rome was not built in a day, but then I was not on that job!"
>> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com> wrote:
>> > Thanks Dan I did search through previous postings for "Spooler" before
>> > I posted. I didn't see anything that addresses this particular error.
>> > What I did find was how to create a program that the spooler will pass
>> > input to which I can successfully do based on what I wrote below. The
>> > problem seems to be with my program receiving the input via the INPUT
>> > or IN statement documented below.
>> > On Nov 23, 10:19 am, Daniel Klein <danielklei...@gmail.com> wrote:
>> >> Usehttp://jbase.markmail.organdsearch for 'spooler'. The answer is there.
>> >> Dan
>> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
>> >> > jBASE 3.4
>> >> > Windows 2000
>> >> > I created a very simple spooler program that receives input from the
>> >> > spooler and writes it to a directory file. I create the FORMQUEUE
>> >> > with:
>> >> > Here is the error I'm getting from the spooler when I do a:
>> >> > SP-ASSIGN F1
>> >> > LIST PART (P
>> >> > jBASE despooler for FORMQUEUE F1
>> >> > Started at 12:55:32 20 NOV 2009
>> >> > Starting Job 13 to PRINT.PROG
>> >> > ** Error [ STDIN ] **
>> >> > Error getting input from STDIN , errno = 0
>> >> > Line 6 , Source PRINT.PROG.b
>> >> > Completed
>> >> > I know the PRINT.PROG program runs and can write to the file because
>> >> > if I change line 6 to LINE="TEST", it does write the string TEST to
>> >> > 1.txt. It looks like it might be a permissions issue but this is on
>> >> > development system which has admin rights on everything. Anyone have a
>> >> > direction they can point me in?
>> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> >> > To post, send email to jBASE@googlegroups.com
>> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> > To post, send email to jBASE@googlegroups.com
>> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> To post, send email to jBASE@googlegroups.com
> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
Thanks Dan, adding the check for system(14) didn't work either but it
did point me to where the problem is, although I still don't know how
to correct it. The problem is system(14) always returns a zero which
tells me the spooler is not outputting to the stdout which is why
nothing gets put in the stdin.
On Nov 24, 5:36 am, Daniel Klein <danielklei...@gmail.com> wrote:
> The spooler is not going to set idle (why does this word come up all
> the time ;-) ) waiting for your program to terminate
> It doesn't matter HOW you do your input. The code first needs to check
> to see if there is anything TO input. Otherwise you will get that
> error.
> If you are still having problems, post the code.
> Dan
> On Mon, Nov 23, 2009 at 9:36 PM, CLIF <jb...@bristol.us.com> wrote:
> > Yes Dan thats what I thought also but I tried an INPUT,1 and had the
> > same result.
> > On Nov 23, 6:15 pm, Daniel Klein <danielklei...@gmail.com> wrote:
> >> Clif,
> >> The error is occurring because you are not telling the program when to
> >> stop accepting INPUT from the spooler.
> >> The important part of the program is where it checks SYSTEM(14) to see
> >> if the spooler is finished.
> >> The part where it builds up and executes the 'cmd' variable is
> >> probably not pertinent for your needs, but the rest of the program can
> >> be used to redirect spooler output to a file by capturing the spooled
> >> output a line-at-a-time and writing it to a sequential file.
> >> Does that help?
> >> Dan
> >> "Rome was not built in a day, but then I was not on that job!"
> >> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com> wrote:
> >> > Thanks Dan I did search through previous postings for "Spooler" before
> >> > I posted. I didn't see anything that addresses this particular error.
> >> > What I did find was how to create a program that the spooler will pass
> >> > input to which I can successfully do based on what I wrote below. The
> >> > problem seems to be with my program receiving the input via the INPUT
> >> > or IN statement documented below.
> >> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
> >> >> > jBASE 3.4
> >> >> > Windows 2000
> >> >> > I created a very simple spooler program that receives input from the
> >> >> > spooler and writes it to a directory file. I create the FORMQUEUE
> >> >> > with:
> >> >> > Here is the error I'm getting from the spooler when I do a:
> >> >> > SP-ASSIGN F1
> >> >> > LIST PART (P
> >> >> > jBASE despooler for FORMQUEUE F1
> >> >> > Started at 12:55:32 20 NOV 2009
> >> >> > Starting Job 13 to PRINT.PROG
> >> >> > ** Error [ STDIN ] **
> >> >> > Error getting input from STDIN , errno = 0
> >> >> > Line 6 , Source PRINT.PROG.b
> >> >> > Completed
> >> >> > I know the PRINT.PROG program runs and can write to the file because
> >> >> > if I change line 6 to LINE="TEST", it does write the string TEST to
> >> >> > 1.txt. It looks like it might be a permissions issue but this is on
> >> >> > development system which has admin rights on everything. Anyone have a
> >> >> > direction they can point me in?
> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> >> >> > To post, send email to jBASE@googlegroups.com
> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> >> > To post, send email to jBASE@googlegroups.com
> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> > To post, send email to jBASE@googlegroups.com
> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
On Tue, Nov 24, 2009 at 3:22 PM, CLIF <jb...@bristol.us.com> wrote:
> Thanks Dan, adding the check for system(14) didn't work either but it
> did point me to where the problem is, although I still don't know how
> to correct it. The problem is system(14) always returns a zero which
> tells me the spooler is not outputting to the stdout which is why
> nothing gets put in the stdin.
> On Nov 24, 5:36 am, Daniel Klein <danielklei...@gmail.com> wrote:
>> The spooler is not going to set idle (why does this word come up all
>> the time ;-) ) waiting for your program to terminate
>> It doesn't matter HOW you do your input. The code first needs to check
>> to see if there is anything TO input. Otherwise you will get that
>> error.
>> If you are still having problems, post the code.
>> Dan
>> On Mon, Nov 23, 2009 at 9:36 PM, CLIF <jb...@bristol.us.com> wrote:
>> > Yes Dan thats what I thought also but I tried an INPUT,1 and had the
>> > same result.
>> > On Nov 23, 6:15 pm, Daniel Klein <danielklei...@gmail.com> wrote:
>> >> Clif,
>> >> The error is occurring because you are not telling the program when to
>> >> stop accepting INPUT from the spooler.
>> >> The important part of the program is where it checks SYSTEM(14) to see
>> >> if the spooler is finished.
>> >> The part where it builds up and executes the 'cmd' variable is
>> >> probably not pertinent for your needs, but the rest of the program can
>> >> be used to redirect spooler output to a file by capturing the spooled
>> >> output a line-at-a-time and writing it to a sequential file.
>> >> Does that help?
>> >> Dan
>> >> "Rome was not built in a day, but then I was not on that job!"
>> >> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com> wrote:
>> >> > Thanks Dan I did search through previous postings for "Spooler" before
>> >> > I posted. I didn't see anything that addresses this particular error.
>> >> > What I did find was how to create a program that the spooler will pass
>> >> > input to which I can successfully do based on what I wrote below. The
>> >> > problem seems to be with my program receiving the input via the INPUT
>> >> > or IN statement documented below.
>> >> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
>> >> >> > jBASE 3.4
>> >> >> > Windows 2000
>> >> >> > I created a very simple spooler program that receives input from the
>> >> >> > spooler and writes it to a directory file. I create the FORMQUEUE
>> >> >> > with:
>> >> >> > Here is the error I'm getting from the spooler when I do a:
>> >> >> > SP-ASSIGN F1
>> >> >> > LIST PART (P
>> >> >> > jBASE despooler for FORMQUEUE F1
>> >> >> > Started at 12:55:32 20 NOV 2009
>> >> >> > Starting Job 13 to PRINT.PROG
>> >> >> > ** Error [ STDIN ] **
>> >> >> > Error getting input from STDIN , errno = 0
>> >> >> > Line 6 , Source PRINT.PROG.b
>> >> >> > Completed
>> >> >> > I know the PRINT.PROG program runs and can write to the file because
>> >> >> > if I change line 6 to LINE="TEST", it does write the string TEST to
>> >> >> > 1.txt. It looks like it might be a permissions issue but this is on
>> >> >> > development system which has admin rights on everything. Anyone have a
>> >> >> > direction they can point me in?
>> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> >> >> > To post, send email to jBASE@googlegroups.com
>> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> >> > To post, send email to jBASE@googlegroups.com
>> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> > To post, send email to jBASE@googlegroups.com
>> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> To post, send email to jBASE@googlegroups.com
> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
> Post your code and I will show you the error of your ways ;-)
> Dan
> On Tue, Nov 24, 2009 at 3:22 PM, CLIF <jb...@bristol.us.com> wrote:
> > Thanks Dan, adding the check for system(14) didn't work either but it
> > did point me to where the problem is, although I still don't know how
> > to correct it. The problem is system(14) always returns a zero which
> > tells me the spooler is not outputting to the stdout which is why
> > nothing gets put in the stdin.
> > On Nov 24, 5:36 am, Daniel Klein <danielklei...@gmail.com> wrote:
> >> The spooler is not going to set idle (why does this word come up all
> >> the time ;-) ) waiting for your program to terminate
> >> It doesn't matter HOW you do your input. The code first needs to check
> >> to see if there is anything TO input. Otherwise you will get that
> >> error.
> >> If you are still having problems, post the code.
> >> Dan
> >> On Mon, Nov 23, 2009 at 9:36 PM, CLIF <jb...@bristol.us.com> wrote:
> >> > Yes Dan thats what I thought also but I tried an INPUT,1 and had the
> >> > same result.
> >> > On Nov 23, 6:15 pm, Daniel Klein <danielklei...@gmail.com> wrote:
> >> >> Clif,
> >> >> The error is occurring because you are not telling the program when to
> >> >> stop accepting INPUT from the spooler.
> >> >> The important part of the program is where it checks SYSTEM(14) to see
> >> >> if the spooler is finished.
> >> >> The part where it builds up and executes the 'cmd' variable is
> >> >> probably not pertinent for your needs, but the rest of the program can
> >> >> be used to redirect spooler output to a file by capturing the spooled
> >> >> output a line-at-a-time and writing it to a sequential file.
> >> >> Does that help?
> >> >> Dan
> >> >> "Rome was not built in a day, but then I was not on that job!"
> >> >> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com> wrote:
> >> >> > Thanks Dan I did search through previous postings for "Spooler" before
> >> >> > I posted. I didn't see anything that addresses this particular error.
> >> >> > What I did find was how to create a program that the spooler will pass
> >> >> > input to which I can successfully do based on what I wrote below. The
> >> >> > problem seems to be with my program receiving the input via the INPUT
> >> >> > or IN statement documented below.
> >> >> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
> >> >> >> > jBASE 3.4
> >> >> >> > Windows 2000
> >> >> >> > I created a very simple spooler program that receives input from the
> >> >> >> > spooler and writes it to a directory file. I create the FORMQUEUE
> >> >> >> > with:
> >> >> >> > Here is the error I'm getting from the spooler when I do a:
> >> >> >> > SP-ASSIGN F1
> >> >> >> > LIST PART (P
> >> >> >> > jBASE despooler for FORMQUEUE F1
> >> >> >> > Started at 12:55:32 20 NOV 2009
> >> >> >> > Starting Job 13 to PRINT.PROG
> >> >> >> > ** Error [ STDIN ] **
> >> >> >> > Error getting input from STDIN , errno = 0
> >> >> >> > Line 6 , Source PRINT.PROG.b
> >> >> >> > Completed
> >> >> >> > I know the PRINT.PROG program runs and can write to the file because
> >> >> >> > if I change line 6 to LINE="TEST", it does write the string TEST to
> >> >> >> > 1.txt. It looks like it might be a permissions issue but this is on
> >> >> >> > development system which has admin rights on everything. Anyone have a
> >> >> >> > direction they can point me in?
> >> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> >> >> >> > To post, send email to jBASE@googlegroups.com
> >> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> >> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> >> >> > To post, send email to jBASE@googlegroups.com
> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> >> > To post, send email to jBASE@googlegroups.com
> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> > To post, send email to jBASE@googlegroups.com
> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
I'll also need to see a 'jdiag.out' file (jdiag -vL) and the
'%JBCRELEASEDIR%\config\Config_EMULATE' file. Include them as
attachments.
My guess as to why it is not working is that 'openseq_creates = true'
is not in your 'Config_EMULATE' file under the appropriate emulation
section. So what is happening is it gets to the OPENSEQ line and
doesn't create the sequential file cos it can't. This theory can be
proved correct by placing a null file called '1.TXT' in the 'D:\tmp'
directory which will satisfy the existence of the sequential file so
that the OPENSEQ line has something to 'open'.
Therefore, the 'fix' is to add 'openseq_creates = true' to your
'Config_EMULATE' file and then there will be no need for the null
'1.TXT' file to pre-exist.
On Tue, Nov 24, 2009 at 7:29 PM, CLIF <jb...@bristol.us.com> wrote:
> Thanks Dan, here is the code:
> 001 PROMPT ''
> 002 ID = "1.TXT"
> 003 DIRECTORY = 'D:\tmp'
> 004 OPENSEQ DIRECTORY:"\":ID TO S.FILE ELSE NULL
> 005 *
> 006 LOOP
> 007 NUMCHARS = SYSTEM(14)
> 008 WHILE NUMCHARS DO
> 009 INPUT LINE,NUMCHARS
> 010 LINE := CHAR(13)
> 011 WRITESEQ LINE ON S.FILE ELSE NULL
> 012 REPEAT
> 013 WEOFSEQ S.FILE ELSE NULL
> 014 CLOSESEQ S.FILE
> On Nov 24, 2:31 pm, Daniel Klein <danielklei...@gmail.com> wrote:
>> Post your code and I will show you the error of your ways ;-)
>> Dan
>> On Tue, Nov 24, 2009 at 3:22 PM, CLIF <jb...@bristol.us.com> wrote:
>> > Thanks Dan, adding the check for system(14) didn't work either but it
>> > did point me to where the problem is, although I still don't know how
>> > to correct it. The problem is system(14) always returns a zero which
>> > tells me the spooler is not outputting to the stdout which is why
>> > nothing gets put in the stdin.
>> > On Nov 24, 5:36 am, Daniel Klein <danielklei...@gmail.com> wrote:
>> >> The spooler is not going to set idle (why does this word come up all
>> >> the time ;-) ) waiting for your program to terminate
>> >> It doesn't matter HOW you do your input. The code first needs to check
>> >> to see if there is anything TO input. Otherwise you will get that
>> >> error.
>> >> If you are still having problems, post the code.
>> >> Dan
>> >> On Mon, Nov 23, 2009 at 9:36 PM, CLIF <jb...@bristol.us.com> wrote:
>> >> > Yes Dan thats what I thought also but I tried an INPUT,1 and had the
>> >> > same result.
>> >> > On Nov 23, 6:15 pm, Daniel Klein <danielklei...@gmail.com> wrote:
>> >> >> Clif,
>> >> >> The error is occurring because you are not telling the program when to
>> >> >> stop accepting INPUT from the spooler.
>> >> >> The important part of the program is where it checks SYSTEM(14) to see
>> >> >> if the spooler is finished.
>> >> >> The part where it builds up and executes the 'cmd' variable is
>> >> >> probably not pertinent for your needs, but the rest of the program can
>> >> >> be used to redirect spooler output to a file by capturing the spooled
>> >> >> output a line-at-a-time and writing it to a sequential file.
>> >> >> Does that help?
>> >> >> Dan
>> >> >> "Rome was not built in a day, but then I was not on that job!"
>> >> >> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com> wrote:
>> >> >> > Thanks Dan I did search through previous postings for "Spooler" before
>> >> >> > I posted. I didn't see anything that addresses this particular error.
>> >> >> > What I did find was how to create a program that the spooler will pass
>> >> >> > input to which I can successfully do based on what I wrote below. The
>> >> >> > problem seems to be with my program receiving the input via the INPUT
>> >> >> > or IN statement documented below.
>> >> >> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
>> >> >> >> > jBASE 3.4
>> >> >> >> > Windows 2000
>> >> >> >> > I created a very simple spooler program that receives input from the
>> >> >> >> > spooler and writes it to a directory file. I create the FORMQUEUE
>> >> >> >> > with:
>> >> >> >> > Here is the error I'm getting from the spooler when I do a:
>> >> >> >> > SP-ASSIGN F1
>> >> >> >> > LIST PART (P
>> >> >> >> > jBASE despooler for FORMQUEUE F1
>> >> >> >> > Started at 12:55:32 20 NOV 2009
>> >> >> >> > Starting Job 13 to PRINT.PROG
>> >> >> >> > ** Error [ STDIN ] **
>> >> >> >> > Error getting input from STDIN , errno = 0
>> >> >> >> > Line 6 , Source PRINT.PROG.b
>> >> >> >> > Completed
>> >> >> >> > I know the PRINT.PROG program runs and can write to the file because
>> >> >> >> > if I change line 6 to LINE="TEST", it does write the string TEST to
>> >> >> >> > 1.txt. It looks like it might be a permissions issue but this is on
>> >> >> >> > development system which has admin rights on everything. Anyone have a
>> >> >> >> > direction they can point me in?
>> >> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> >> >> >> > To post, send email to jBASE@googlegroups.com
>> >> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> >> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> >> >> > To post, send email to jBASE@googlegroups.com
>> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> >> > To post, send email to jBASE@googlegroups.com
>> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> > To post, send email to jBASE@googlegroups.com
>> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> To post, send email to jBASE@googlegroups.com
> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
> I'll also need to see a 'jdiag.out' file (jdiag -vL) and the
> '%JBCRELEASEDIR%\config\Config_EMULATE' file. Include them as
> attachments.
> My guess as to why it is not working is that 'openseq_creates = true'
> is not in your 'Config_EMULATE' file under the appropriate emulation
> section. So what is happening is it gets to the OPENSEQ line and
> doesn't create the sequential file cos it can't. This theory can be
> proved correct by placing a null file called '1.TXT' in the 'D:\tmp'
> directory which will satisfy the existence of the sequential file so
> that the OPENSEQ line has something to 'open'.
> Therefore, the 'fix' is to add 'openseq_creates = true' to your
> 'Config_EMULATE' file and then there will be no need for the null
> '1.TXT' file to pre-exist.
> Dan
> On Tue, Nov 24, 2009 at 7:29 PM, CLIF <jb...@bristol.us.com> wrote:
> > Thanks Dan, here is the code:
> > On Nov 24, 2:31 pm, Daniel Klein <danielklei...@gmail.com> wrote:
> >> Post your code and I will show you the error of your ways ;-)
> >> Dan
> >> On Tue, Nov 24, 2009 at 3:22 PM, CLIF <jb...@bristol.us.com> wrote:
> >> > Thanks Dan, adding the check for system(14) didn't work either but it
> >> > did point me to where the problem is, although I still don't know how
> >> > to correct it. The problem is system(14) always returns a zero which
> >> > tells me the spooler is not outputting to the stdout which is why
> >> > nothing gets put in the stdin.
> >> > On Nov 24, 5:36 am, Daniel Klein <danielklei...@gmail.com> wrote:
> >> >> The spooler is not going to set idle (why does this word come up all
> >> >> the time ;-) ) waiting for your program to terminate
> >> >> It doesn't matter HOW you do your input. The code first needs to check
> >> >> to see if there is anything TO input. Otherwise you will get that
> >> >> error.
> >> >> If you are still having problems, post the code.
> >> >> Dan
> >> >> On Mon, Nov 23, 2009 at 9:36 PM, CLIF <jb...@bristol.us.com> wrote:
> >> >> > Yes Dan thats what I thought also but I tried an INPUT,1 and had the
> >> >> > same result.
> >> >> > On Nov 23, 6:15 pm, Daniel Klein <danielklei...@gmail.com> wrote:
> >> >> >> Clif,
> >> >> >> The error is occurring because you are not telling the program when to
> >> >> >> stop accepting INPUT from the spooler.
> >> >> >> The important part of the program is where it checks SYSTEM(14) to see
> >> >> >> if the spooler is finished.
> >> >> >> The part where it builds up and executes the 'cmd' variable is
> >> >> >> probably not pertinent for your needs, but the rest of the program can
> >> >> >> be used to redirect spooler output to a file by capturing the spooled
> >> >> >> output a line-at-a-time and writing it to a sequential file.
> >> >> >> Does that help?
> >> >> >> Dan
> >> >> >> "Rome was not built in a day, but then I was not on that job!"
> >> >> >> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com> wrote:
> >> >> >> > Thanks Dan I did search through previous postings for "Spooler" before
> >> >> >> > I posted. I didn't see anything that addresses this particular error.
> >> >> >> > What I did find was how to create a program that the spooler will pass
> >> >> >> > input to which I can successfully do based on what I wrote below. The
> >> >> >> > problem seems to be with my program receiving the input via the INPUT
> >> >> >> > or IN statement documented below.
> >> >> >> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
> >> >> >> >> > jBASE 3.4
> >> >> >> >> > Windows 2000
> >> >> >> >> > I created a very simple spooler program that receives input from the
> >> >> >> >> > spooler and writes it to a directory file. I create the FORMQUEUE
> >> >> >> >> > with:
> >> >> >> >> > Here is the error I'm getting from the spooler when I do a:
> >> >> >> >> > SP-ASSIGN F1
> >> >> >> >> > LIST PART (P
> >> >> >> >> > jBASE despooler for FORMQUEUE F1
> >> >> >> >> > Started at 12:55:32 20 NOV 2009
> >> >> >> >> > Starting Job 13 to PRINT.PROG
> >> >> >> >> > ** Error [ STDIN ] **
> >> >> >> >> > Error getting input from STDIN , errno = 0
> >> >> >> >> > Line 6 , Source PRINT.PROG.b
> >> >> >> >> > Completed
> >> >> >> >> > I know the PRINT.PROG program runs and can write to the file because
> >> >> >> >> > if I change line 6 to LINE="TEST", it does write the string TEST to
> >> >> >> >> > 1.txt. It looks like it might be a permissions issue but this is on
> >> >> >> >> > development system which has admin rights on everything. Anyone have a
> >> >> >> >> > direction they can point me in?
> >> >> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> >> >> >> >> > To post, send email to jBASE@googlegroups.com
> >> >> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> >> >> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> >> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> >> >> >> > To post, send email to jBASE@googlegroups.com
> >> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> >> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> >> >> > To post, send email to jBASE@googlegroups.com
> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> >> > To post, send email to jBASE@googlegroups.com
> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> > To post, send email to jBASE@googlegroups.com
> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
On Tue, Nov 24, 2009 at 8:33 PM, CLIF <jb...@bristol.us.com> wrote:
> I have openseq_creates = true. The seq file does get created just that
> nothing ever gets written into it.
> On Nov 24, 5:30 pm, Daniel Klein <danielklei...@gmail.com> wrote:
>> I'll also need to see a 'jdiag.out' file (jdiag -vL) and the
>> '%JBCRELEASEDIR%\config\Config_EMULATE' file. Include them as
>> attachments.
>> My guess as to why it is not working is that 'openseq_creates = true'
>> is not in your 'Config_EMULATE' file under the appropriate emulation
>> section. So what is happening is it gets to the OPENSEQ line and
>> doesn't create the sequential file cos it can't. This theory can be
>> proved correct by placing a null file called '1.TXT' in the 'D:\tmp'
>> directory which will satisfy the existence of the sequential file so
>> that the OPENSEQ line has something to 'open'.
>> Therefore, the 'fix' is to add 'openseq_creates = true' to your
>> 'Config_EMULATE' file and then there will be no need for the null
>> '1.TXT' file to pre-exist.
>> Dan
>> On Tue, Nov 24, 2009 at 7:29 PM, CLIF <jb...@bristol.us.com> wrote:
>> > Thanks Dan, here is the code:
>> > On Nov 24, 2:31 pm, Daniel Klein <danielklei...@gmail.com> wrote:
>> >> Post your code and I will show you the error of your ways ;-)
>> >> Dan
>> >> On Tue, Nov 24, 2009 at 3:22 PM, CLIF <jb...@bristol.us.com> wrote:
>> >> > Thanks Dan, adding the check for system(14) didn't work either but it
>> >> > did point me to where the problem is, although I still don't know how
>> >> > to correct it. The problem is system(14) always returns a zero which
>> >> > tells me the spooler is not outputting to the stdout which is why
>> >> > nothing gets put in the stdin.
>> >> > On Nov 24, 5:36 am, Daniel Klein <danielklei...@gmail.com> wrote:
>> >> >> The spooler is not going to set idle (why does this word come up all
>> >> >> the time ;-) ) waiting for your program to terminate
>> >> >> It doesn't matter HOW you do your input. The code first needs to check
>> >> >> to see if there is anything TO input. Otherwise you will get that
>> >> >> error.
>> >> >> If you are still having problems, post the code.
>> >> >> Dan
>> >> >> On Mon, Nov 23, 2009 at 9:36 PM, CLIF <jb...@bristol.us.com> wrote:
>> >> >> > Yes Dan thats what I thought also but I tried an INPUT,1 and had the
>> >> >> > same result.
>> >> >> > On Nov 23, 6:15 pm, Daniel Klein <danielklei...@gmail.com> wrote:
>> >> >> >> Clif,
>> >> >> >> The error is occurring because you are not telling the program when to
>> >> >> >> stop accepting INPUT from the spooler.
>> >> >> >> The important part of the program is where it checks SYSTEM(14) to see
>> >> >> >> if the spooler is finished.
>> >> >> >> The part where it builds up and executes the 'cmd' variable is
>> >> >> >> probably not pertinent for your needs, but the rest of the program can
>> >> >> >> be used to redirect spooler output to a file by capturing the spooled
>> >> >> >> output a line-at-a-time and writing it to a sequential file.
>> >> >> >> Does that help?
>> >> >> >> Dan
>> >> >> >> "Rome was not built in a day, but then I was not on that job!"
>> >> >> >> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com> wrote:
>> >> >> >> > Thanks Dan I did search through previous postings for "Spooler" before
>> >> >> >> > I posted. I didn't see anything that addresses this particular error.
>> >> >> >> > What I did find was how to create a program that the spooler will pass
>> >> >> >> > input to which I can successfully do based on what I wrote below. The
>> >> >> >> > problem seems to be with my program receiving the input via the INPUT
>> >> >> >> > or IN statement documented below.
>> >> >> >> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
>> >> >> >> >> > jBASE 3.4
>> >> >> >> >> > Windows 2000
>> >> >> >> >> > I created a very simple spooler program that receives input from the
>> >> >> >> >> > spooler and writes it to a directory file. I create the FORMQUEUE
>> >> >> >> >> > with:
>> >> >> >> >> > Here is the error I'm getting from the spooler when I do a:
>> >> >> >> >> > SP-ASSIGN F1
>> >> >> >> >> > LIST PART (P
>> >> >> >> >> > jBASE despooler for FORMQUEUE F1
>> >> >> >> >> > Started at 12:55:32 20 NOV 2009
>> >> >> >> >> > Starting Job 13 to PRINT.PROG
>> >> >> >> >> > ** Error [ STDIN ] **
>> >> >> >> >> > Error getting input from STDIN , errno = 0
>> >> >> >> >> > Line 6 , Source PRINT.PROG.b
>> >> >> >> >> > Completed
>> >> >> >> >> > I know the PRINT.PROG program runs and can write to the file because
>> >> >> >> >> > if I change line 6 to LINE="TEST", it does write the string TEST to
>> >> >> >> >> > 1.txt. It looks like it might be a permissions issue but this is on
>> >> >> >> >> > development system which has admin rights on everything. Anyone have a
>> >> >> >> >> > direction they can point me in?
>> >> >> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> >> >> >> >> > To post, send email to jBASE@googlegroups.com
>> >> >> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> >> >> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>> >> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> >> >> >> > To post, send email to jBASE@googlegroups.com
>> >> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> >> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> >> >> > To post, send email to jBASE@googlegroups.com
>> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> >> > To post, send email to jBASE@googlegroups.com
>> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>> > To post, send email to jBASE@googlegroups.com
>> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
> IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
> To post, send email to jBASE@googlegroups.com
> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
On Wed, Nov 25, 2009 at 6:56 AM, Daniel Klein <danielklei...@gmail.com> wrote:
> How is the queue defined?
> What is the name of the program?
> Does 'D:\tmp' exist?
> What are the permissions on 'D:\tmp'?
> What does 'jshow program_name' display?
> What is the 'SP-ASSIGN' statement being used?
> What is the command being issued to direct output to the spooler? Does
> the command actually produce 'output'?
> Are you still getting the error?
> Where is the 'jdiag.out' and 'Config_EMULATE' file?
> If you want further assistasdnce then you need to volunteer more information.
> Dan
> On Tue, Nov 24, 2009 at 8:33 PM, CLIF <jb...@bristol.us.com> wrote:
>> I have openseq_creates = true. The seq file does get created just that
>> nothing ever gets written into it.
>> On Nov 24, 5:30 pm, Daniel Klein <danielklei...@gmail.com> wrote:
>>> I'll also need to see a 'jdiag.out' file (jdiag -vL) and the
>>> '%JBCRELEASEDIR%\config\Config_EMULATE' file. Include them as
>>> attachments.
>>> My guess as to why it is not working is that 'openseq_creates = true'
>>> is not in your 'Config_EMULATE' file under the appropriate emulation
>>> section. So what is happening is it gets to the OPENSEQ line and
>>> doesn't create the sequential file cos it can't. This theory can be
>>> proved correct by placing a null file called '1.TXT' in the 'D:\tmp'
>>> directory which will satisfy the existence of the sequential file so
>>> that the OPENSEQ line has something to 'open'.
>>> Therefore, the 'fix' is to add 'openseq_creates = true' to your
>>> 'Config_EMULATE' file and then there will be no need for the null
>>> '1.TXT' file to pre-exist.
>>> Dan
>>> On Tue, Nov 24, 2009 at 7:29 PM, CLIF <jb...@bristol.us.com> wrote:
>>> > Thanks Dan, here is the code:
>>> > On Nov 24, 2:31 pm, Daniel Klein <danielklei...@gmail.com> wrote:
>>> >> Post your code and I will show you the error of your ways ;-)
>>> >> Dan
>>> >> On Tue, Nov 24, 2009 at 3:22 PM, CLIF <jb...@bristol.us.com> wrote:
>>> >> > Thanks Dan, adding the check for system(14) didn't work either but it
>>> >> > did point me to where the problem is, although I still don't know how
>>> >> > to correct it. The problem is system(14) always returns a zero which
>>> >> > tells me the spooler is not outputting to the stdout which is why
>>> >> > nothing gets put in the stdin.
>>> >> > On Nov 24, 5:36 am, Daniel Klein <danielklei...@gmail.com> wrote:
>>> >> >> The spooler is not going to set idle (why does this word come up all
>>> >> >> the time ;-) ) waiting for your program to terminate
>>> >> >> It doesn't matter HOW you do your input. The code first needs to check
>>> >> >> to see if there is anything TO input. Otherwise you will get that
>>> >> >> error.
>>> >> >> If you are still having problems, post the code.
>>> >> >> Dan
>>> >> >> On Mon, Nov 23, 2009 at 9:36 PM, CLIF <jb...@bristol.us.com> wrote:
>>> >> >> > Yes Dan thats what I thought also but I tried an INPUT,1 and had the
>>> >> >> > same result.
>>> >> >> > On Nov 23, 6:15 pm, Daniel Klein <danielklei...@gmail.com> wrote:
>>> >> >> >> Clif,
>>> >> >> >> The error is occurring because you are not telling the program when to
>>> >> >> >> stop accepting INPUT from the spooler.
>>> >> >> >> The important part of the program is where it checks SYSTEM(14) to see
>>> >> >> >> if the spooler is finished.
>>> >> >> >> The part where it builds up and executes the 'cmd' variable is
>>> >> >> >> probably not pertinent for your needs, but the rest of the program can
>>> >> >> >> be used to redirect spooler output to a file by capturing the spooled
>>> >> >> >> output a line-at-a-time and writing it to a sequential file.
>>> >> >> >> Does that help?
>>> >> >> >> Dan
>>> >> >> >> "Rome was not built in a day, but then I was not on that job!"
>>> >> >> >> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com> wrote:
>>> >> >> >> > Thanks Dan I did search through previous postings for "Spooler" before
>>> >> >> >> > I posted. I didn't see anything that addresses this particular error.
>>> >> >> >> > What I did find was how to create a program that the spooler will pass
>>> >> >> >> > input to which I can successfully do based on what I wrote below. The
>>> >> >> >> > problem seems to be with my program receiving the input via the INPUT
>>> >> >> >> > or IN statement documented below.
>>> >> >> >> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <jb...@bristol.us.com> wrote:
>>> >> >> >> >> > jBASE 3.4
>>> >> >> >> >> > Windows 2000
>>> >> >> >> >> > I created a very simple spooler program that receives input from the
>>> >> >> >> >> > spooler and writes it to a directory file. I create the FORMQUEUE
>>> >> >> >> >> > with:
>>> >> >> >> >> > Here is the error I'm getting from the spooler when I do a:
>>> >> >> >> >> > SP-ASSIGN F1
>>> >> >> >> >> > LIST PART (P
>>> >> >> >> >> > jBASE despooler for FORMQUEUE F1
>>> >> >> >> >> > Started at 12:55:32 20 NOV 2009
>>> >> >> >> >> > Starting Job 13 to PRINT.PROG
>>> >> >> >> >> > ** Error [ STDIN ] **
>>> >> >> >> >> > Error getting input from STDIN , errno = 0
>>> >> >> >> >> > Line 6 , Source PRINT.PROG.b
>>> >> >> >> >> > Completed
>>> >> >> >> >> > I know the PRINT.PROG program runs and can write to the file because
>>> >> >> >> >> > if I change line 6 to LINE="TEST", it does write the string TEST to
>>> >> >> >> >> > 1.txt. It looks like it might be a permissions issue but this is on
>>> >> >> >> >> > development system which has admin rights on everything. Anyone have a
>>> >> >> >> >> > direction they can point me in?
>>> >> >> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>>> >> >> >> >> > To post, send email to jBASE@googlegroups.com
>>> >> >> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>>> >> >> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>>> >> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>>> >> >> >> > To post, send email to jBASE@googlegroups.com
>>> >> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>>> >> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>>> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>>> >> >> > To post, send email to jBASE@googlegroups.com
>>> >> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>>> >> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>>> >> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>>> >> > To post, send email to jBASE@googlegroups.com
>>> >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>>> >> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
>>> > IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
>>> > To post, send email to jBASE@googlegroups.com
>>> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
>>> > For more options, visit this group athttp://groups.google.com/group/jBASE?hl=en
Thanks that it least tells me ther is somthing wrong with my spooler
or jBASE setup. I'm sure its not a permissions issue at least with the
d:\temp directory. I'm creating the formqueue like:
SP-CREATE F1 PROG PRINT.PROG
I do an SP-ASSIGN F1
then
LIST PART (P
Below is my jdiag
System Information
==================
System : Win2K CLIF2000 5.0 i386
OS Release : Win 2000 Build 2195 Service Pack 4
NT User : cbristol
jBASE User (JBCLOGNAME) : Not Set
Time : Wed Nov 25 06:26:55 2009
Licence details
===============
jPML: jENTERPRISE licensed for 3 users, expires Wed Dec 30 16:00:00
2009
Product: jENTERPRISE licensed for 3 Users; expires Wed Dec 30 16:00:00
2009
License Details: jENTERPRISE^0^3^1262217600
Environment
===========
JBCWINCONNECT : 'C:\JBASE30\tmp\jPML_0'
JBCPORTNO : '0'
Connect Port : '0'
JBCRELEASEDIR : 'C:\JBASE30'
JBCGLOBALDIR : 'C:\JBASE30'
HOME : 'D:\IMS50'
JEDIFILEPATH (Default) : 'D:\IMS50;.'
JEDIFILENAME_MD : 'D:\IMS50\MD]D'
JEDIFILENAME_SYSTEM : 'D:\IMS50\SYSTEM'
JBCBASETMP (Default) : 'C:\JBASE30\tmp\jBASEWORK'
JBCNOINTERNAL : Not Set
JEDI_NOSHMEM : Not Set
RELEASE Information : Major 3.4 , Minor 1 , Patch 5
Spooler dir (Default) : 'C:\JBASE30\jspooler'
Spooler directory 'C:\JBASE30\jspooler' OK
JBCEMULATE : 'JBASE'
Emulation Config file 'C:\JBASE30\config\Config_EMULATE' OK
JBCEMULATE Label 'JBASE' found in file 'C:\JBASE30\config
\Config_EMULATE'
Found : 'C:\WINNT\system32\libjbase.dll'
Found : 'C:\JBASE30\BIN\libinternal.dll'
Found : 'C:\JBASE30\BIN\libjcon.dll'
Found : 'C:\JBASE30\lib\libjpq.dll'
Found : 'C:\JBASE30\lib\libqueries.dll'
Found : 'C:\JBASE30\lib\libutils.dll'
Found : 'C:\JBASE30\lib\libjpq.def'
Found : 'C:\JBASE30\lib\libqueries.def'
Found : 'C:\JBASE30\lib\libutils.def'
Object path (JBCOBJECTLIST) : 'D:\DSPATCH\TASK8.001\REL\LIB;D:
\IMS50\REL\LIB'
WARNING: Cannot access Object path 'D:\DSPATCH\TASK8.001\REL\LIB',
error 2
JBC_CCOMPILER_PATH : C:\Program Files\Microsoft Visual Studio
\VC98
JBC_SHAREDIDE_PATH : C:\Program Files\Microsoft Visual Studio
\Common\MSDEV98\bin
VC++ Registry : Version 6; Path C:\Program Files
\Microsoft Visual Studio\VC98
VC++ BIN Path 'C:\Program Files\Microsoft Visual Studio\VC98\bin' OK
VC++ INCLUDE Path 'C:\Program Files\Microsoft Visual Studio
\VC98\include' OK
VC++ LIB Path 'C:\Program Files\Microsoft Visual Studio\VC98\lib' OK
Program dir (JBCDEV_BIN) : 'D:\IMS50\REL\BIN'
Program Path 'D:\IMS50\REL\BIN' is in your PATH
Subroutine dir (JBCDEV_LIB) : 'D:\IMS50\REL\LIB'
Subroutine path 'D:\IMS50\REL\LIB' is in JBCOBJECTLIST
> Btw, I just plugged your program in to my system and it worked perfectly.
> Dan
> On Wed, Nov 25, 2009 at 6:56 AM, Daniel Klein <danielklei...@gmail.com> wrote:
> > How is the queue defined?
> > What is the name of the program?
> > Does 'D:\tmp' exist?
> > What are the permissions on 'D:\tmp'?
> > What does 'jshow program_name' display?
> > What is the 'SP-ASSIGN' statement being used?
> > What is the command being issued to direct output to the spooler? Does
> > the command actually produce 'output'?
> > Are you still getting the error?
> > Where is the 'jdiag.out' and 'Config_EMULATE' file?
> > If you want further assistasdnce then you need to volunteer more information.
> > Dan
> > On Tue, Nov 24, 2009 at 8:33 PM, CLIF <jb...@bristol.us.com> wrote:
> >> I have openseq_creates = true. The seq file does get created just that
> >> nothing ever gets written into it.
> >> On Nov 24, 5:30 pm, Daniel Klein <danielklei...@gmail.com> wrote:
> >>> I'll also need to see a 'jdiag.out' file (jdiag -vL) and the
> >>> '%JBCRELEASEDIR%\config\Config_EMULATE' file. Include them as
> >>> attachments.
> >>> My guess as to why it is not working is that 'openseq_creates = true'
> >>> is not in your 'Config_EMULATE' file under the appropriate emulation
> >>> section. So what is happening is it gets to the OPENSEQ line and
> >>> doesn't create the sequential file cos it can't. This theory can be
> >>> proved correct by placing a null file called '1.TXT' in the 'D:\tmp'
> >>> directory which will satisfy the existence of the sequential file so
> >>> that the OPENSEQ line has something to 'open'.
> >>> Therefore, the 'fix' is to add 'openseq_creates = true'
> Thanks that it least tells me ther is somthing wrong with my spooler
> or jBASE setup. I'm sure its not a permissions issue at least with the
> d:\temp directory. I'm creating the formqueue like:
> SP-CREATE F1 PROG PRINT.PROG
> I do an SP-ASSIGN F1
> then
> LIST PART (P
> Below is my jdiag
> System Information
> ==================
> System : Win2K CLIF2000 5.0 i386
> OS Release : Win 2000 Build 2195 Service Pack 4
> NT User : cbristol
> jBASE User (JBCLOGNAME) : Not Set
> Time : Wed Nov 25 06:26:55 2009
> Licence details
> ===============
> jPML: jENTERPRISE licensed for 3 users, expires Wed Dec 30 16:00:00
> 2009
> Product: jENTERPRISE licensed for 3 Users; expires Wed Dec 30 16:00:00
> 2009
> License Details: jENTERPRISE^0^3^1262217600
> Environment
> ===========
> JBCWINCONNECT : 'C:\JBASE30\tmp\jPML_0'
> JBCPORTNO : '0'
> Connect Port : '0'
> JBCRELEASEDIR : 'C:\JBASE30'
> JBCGLOBALDIR : 'C:\JBASE30'
> HOME : 'D:\IMS50'
> JEDIFILEPATH (Default) : 'D:\IMS50;.'
> JEDIFILENAME_MD : 'D:\IMS50\MD]D'
> JEDIFILENAME_SYSTEM : 'D:\IMS50\SYSTEM'
> JBCBASETMP (Default) : 'C:\JBASE30\tmp\jBASEWORK'
> JBCNOINTERNAL : Not Set
> JEDI_NOSHMEM : Not Set
> RELEASE Information : Major 3.4 , Minor 1 , Patch 5
> Spooler dir (Default) : 'C:\JBASE30\jspooler'
> Spooler directory 'C:\JBASE30\jspooler' OK
> JBCEMULATE : 'JBASE'
> Emulation Config file 'C:\JBASE30\config\Config_EMULATE' OK
> JBCEMULATE Label 'JBASE' found in file 'C:\JBASE30\config
> \Config_EMULATE'
On Wed, Nov 25, 2009 at 9:35 AM, CLIF <jb...@bristol.us.com> wrote:
> Thanks that it least tells me ther is somthing wrong with my spooler
> or jBASE setup. I'm sure its not a permissions issue at least with the
> d:\temp directory. I'm creating the formqueue like:
> SP-CREATE F1 PROG PRINT.PROG
> I do an SP-ASSIGN F1
> then
> LIST PART (P
> Below is my jdiag
> System Information
> ==================
> System : Win2K CLIF2000 5.0 i386
> OS Release : Win 2000 Build 2195 Service Pack 4
> NT User : cbristol
> jBASE User (JBCLOGNAME) : Not Set
> Time : Wed Nov 25 06:26:55 2009
> Licence details
> ===============
> jPML: jENTERPRISE licensed for 3 users, expires Wed Dec 30 16:00:00
> 2009
> Product: jENTERPRISE licensed for 3 Users; expires Wed Dec 30 16:00:00
> 2009
> License Details: jENTERPRISE^0^3^1262217600
> Environment
> ===========
> JBCWINCONNECT : 'C:\JBASE30\tmp\jPML_0'
> JBCPORTNO : '0'
> Connect Port : '0'
> JBCRELEASEDIR : 'C:\JBASE30'
> JBCGLOBALDIR : 'C:\JBASE30'
> HOME : 'D:\IMS50'
> JEDIFILEPATH (Default) : 'D:\IMS50;.'
> JEDIFILENAME_MD : 'D:\IMS50\MD]D'
> JEDIFILENAME_SYSTEM : 'D:\IMS50\SYSTEM'
> JBCBASETMP (Default) : 'C:\JBASE30\tmp\jBASEWORK'
> JBCNOINTERNAL : Not Set
> JEDI_NOSHMEM : Not Set
> RELEASE Information : Major 3.4 , Minor 1 , Patch 5
> Spooler dir (Default) : 'C:\JBASE30\jspooler'
> Spooler directory 'C:\JBASE30\jspooler' OK
> JBCEMULATE : 'JBASE'
> Emulation Config file 'C:\JBASE30\config\Config_EMULATE' OK
> JBCEMULATE Label 'JBASE' found in file 'C:\JBASE30\config
> \Config_EMULATE'
> -----Original Message-----
> From: CLIF [mailto:jb...@bristol.us.com]
> Sent: Tuesday, November 24, 2009 5:34 PM
> To: jBASE
> Subject: Re: Spooler print to file program
> I have openseq_creates = true. The seq file does get created just that
> nothing ever gets written into it.
> On Nov 24, 5:30 pm, Daniel Klein <danielklei...@gmail.com> wrote:
> > I'll also need to see a 'jdiag.out' file (jdiag -vL) and the
> > '%JBCRELEASEDIR%\config\Config_EMULATE' file. Include them as
> > attachments.
> > My guess as to why it is not working is that 'openseq_creates = true'
> > is not in your 'Config_EMULATE' file under the appropriate emulation
> > section. So what is happening is it gets to the OPENSEQ line and
> > doesn't create the sequential file cos it can't. This theory can be
> > proved correct by placing a null file called '1.TXT' in the 'D:\tmp'
> > directory which will satisfy the existence of the sequential file so
> > that the OPENSEQ line has something to 'open'.
> > Therefore, the 'fix' is to add 'openseq_creates = true' to your
> > 'Config_EMULATE' file and then there will be no need for the null
> > '1.TXT' file to pre-exist.
> > Dan
> > On Tue, Nov 24, 2009 at 7:29 PM, CLIF <jb...@bristol.us.com> wrote:
> > > Thanks Dan, here is the code:
> > > On Nov 24, 2:31 pm, Daniel Klein <danielklei...@gmail.com> wrote:
> > >> Post your code and I will show you the error of your ways ;-)
> > >> Dan
> > >> On Tue, Nov 24, 2009 at 3:22 PM, CLIF <jb...@bristol.us.com>
> wrote:
> > >> > Thanks Dan, adding the check for system(14) didn't work either
> but it
> > >> > did point me to where the problem is, although I still don't
> know how
> > >> > to correct it. The problem is system(14) always returns a zero
> which
> > >> > tells me the spooler is not outputting to the stdout which is
> why
> > >> > nothing gets put in the stdin.
> > >> > On Nov 24, 5:36 am, Daniel Klein <danielklei...@gmail.com>
> wrote:
> > >> >> The spooler is not going to set idle (why does this word come
> up all
> > >> >> the time ;-) ) waiting for your program to terminate
> > >> >> It doesn't matter HOW you do your input. The code first needs
> to check
> > >> >> to see if there is anything TO input. Otherwise you will get
> that
> > >> >> error.
> > >> >> If you are still having problems, post the code.
> > >> >> Dan
> > >> >> On Mon, Nov 23, 2009 at 9:36 PM, CLIF <jb...@bristol.us.com>
> wrote:
> > >> >> > Yes Dan thats what I thought also but I tried an INPUT,1 and
> had the
> > >> >> > same result.
> > >> >> > On Nov 23, 6:15 pm, Daniel Klein <danielklei...@gmail.com>
> wrote:
> > >> >> >> Clif,
> > >> >> >> The error is occurring because you are not telling the
> program when to
> > >> >> >> stop accepting INPUT from the spooler.
> > >> >> >> The important part of the program is where it checks
> SYSTEM(14) to see
> > >> >> >> if the spooler is finished.
> > >> >> >> The part where it builds up and executes the 'cmd' variable
> is
> > >> >> >> probably not pertinent for your needs, but the rest of the
> program can
> > >> >> >> be used to redirect spooler output to a file by capturing
> the spooled
> > >> >> >> output a line-at-a-time and writing it to a sequential file.
> > >> >> >> Does that help?
> > >> >> >> Dan
> > >> >> >> "Rome was not built in a day, but then I was not on that
> job!"
> > >> >> >> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com>
> wrote:
> > >> >> >> > Thanks Dan I did search through previous postings for
> "Spooler" before
> > >> >> >> > I posted. I didn't see anything that addresses this
> particular error.
> > >> >> >> > What I did find was how to create a program that the
> spooler will pass
> > >> >> >> > input to which I can successfully do based on what I wrote
> below. The
> > >> >> >> > problem seems to be with my program receiving the input
> via the INPUT
> > >> >> >> > or IN statement documented below.
> > >> >> >> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF
> <jb...@bristol.us.com> wrote:
> > >> >> >> >> > jBASE 3.4
> > >> >> >> >> > Windows 2000
> > >> >> >> >> > I created a very simple spooler program that receives
> input from the
> > >> >> >> >> > spooler and writes it to a directory file. I create the
> FORMQUEUE
> > >> >> >> >> > with:
> > >> >> >> >> > I know the PRINT.PROG program runs and can write to the
> file because
> > >> >> >> >> > if I change line 6 to LINE="TEST", it does write the
> string TEST to
> > >> >> >> >> > 1.txt. It looks like it might be a permissions issue
> but this is on
> > >> >> >> >> > development system which has admin rights on
> everything. Anyone have a
> > >> >> >> >> > direction they can point me in?
> > >> >> >> >> > IMPORTANT: Type T24: at the start of the subject line
> for questions specific to Globus/T24
> > >> >> >> >> > To post, send email to jBASE@googlegroups.com
> > >> >> >> >> > To unsubscribe, send email to jBASE-
> unsubscribe@googlegroups.com
> > >> >> >> >> > For more options, visit this group
> athttp://groups.google.com/group/jBASE?hl=en
> > >> >> >> > IMPORTANT: Type T24: at the start of the subject line for
> questions specific to Globus/T24
> > >> >> >> > To post, send email to jBASE@googlegroups.com
> > >> >> >> > To unsubscribe, send email to jBASE-
> unsubscribe@googlegroups.com
> > >> >> >> > For more options, visit this group
> athttp://groups.google.com/group/jBASE?hl=en
> > >> >> > IMPORTANT: Type T24: at the start of the subject line for
> questions specific to Globus/T24
> > >> >> > To post, send email to jBASE@googlegroups.com
> > >> >> > To unsubscribe, send email to jBASE-
> unsubscribe@googlegroups.com
> > >> >> > For more options, visit this group
> athttp://groups.google.com/group/jBASE?hl=en
> > >> > IMPORTANT: Type T24: at the start of the subject line for
> questions specific to Globus/T24
> > >> > To post, send email to jBASE@googlegroups.com
> > >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> > >> > For more options, visit this group
> athttp://groups.google.com/group/jBASE?hl=en
> > > IMPORTANT: Type T24: at the start of the subject line for questions
> specific to Globus/T24
> > > To post, send email to jBASE@googlegroups.com
> > > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> > > For more options, visit this group
> athttp://groups.google.com/group/jBASE?hl=en
> IMPORTANT: Type T24: at the start of the subject line for questions
> specific to Globus/T24
> To post, send email to jBASE@googlegroups.com
> To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/jBASE?hl=en
The TERM variable, Hmm. What do you mean? I'm setting up the queue
from the console and running the statement:
LIST PART (P
from the console with TERM set to NTCON.
Is there something more I need to do with the TERM variable?
On Nov 25, 10:42 am, "Jim Idle" <j...@temporal-wave.com> wrote:
> > -----Original Message-----
> > From: CLIF [mailto:jb...@bristol.us.com]
> > Sent: Tuesday, November 24, 2009 5:34 PM
> > To: jBASE
> > Subject: Re: Spooler print to file program
> > I have openseq_creates = true. The seq file does get created just that
> > nothing ever gets written into it.
> > On Nov 24, 5:30 pm, Daniel Klein <danielklei...@gmail.com> wrote:
> > > I'll also need to see a 'jdiag.out' file (jdiag -vL) and the
> > > '%JBCRELEASEDIR%\config\Config_EMULATE' file. Include them as
> > > attachments.
> > > My guess as to why it is not working is that 'openseq_creates = true'
> > > is not in your 'Config_EMULATE' file under the appropriate emulation
> > > section. So what is happening is it gets to the OPENSEQ line and
> > > doesn't create the sequential file cos it can't. This theory can be
> > > proved correct by placing a null file called '1.TXT' in the 'D:\tmp'
> > > directory which will satisfy the existence of the sequential file so
> > > that the OPENSEQ line has something to 'open'.
> > > Therefore, the 'fix' is to add 'openseq_creates = true' to your
> > > 'Config_EMULATE' file and then there will be no need for the null
> > > '1.TXT' file to pre-exist.
> > > Dan
> > > On Tue, Nov 24, 2009 at 7:29 PM, CLIF <jb...@bristol.us.com> wrote:
> > > > Thanks Dan, here is the code:
> > > > On Nov 24, 2:31 pm, Daniel Klein <danielklei...@gmail.com> wrote:
> > > >> Post your code and I will show you the error of your ways ;-)
> > > >> Dan
> > > >> On Tue, Nov 24, 2009 at 3:22 PM, CLIF <jb...@bristol.us.com>
> > wrote:
> > > >> > Thanks Dan, adding the check for system(14) didn't work either
> > but it
> > > >> > did point me to where the problem is, although I still don't
> > know how
> > > >> > to correct it. The problem is system(14) always returns a zero
> > which
> > > >> > tells me the spooler is not outputting to the stdout which is
> > why
> > > >> > nothing gets put in the stdin.
> > > >> > On Nov 24, 5:36 am, Daniel Klein <danielklei...@gmail.com>
> > wrote:
> > > >> >> The spooler is not going to set idle (why does this word come
> > up all
> > > >> >> the time ;-) ) waiting for your program to terminate
> > > >> >> It doesn't matter HOW you do your input. The code first needs
> > to check
> > > >> >> to see if there is anything TO input. Otherwise you will get
> > that
> > > >> >> error.
> > > >> >> If you are still having problems, post the code.
> > > >> >> Dan
> > > >> >> On Mon, Nov 23, 2009 at 9:36 PM, CLIF <jb...@bristol.us.com>
> > wrote:
> > > >> >> > Yes Dan thats what I thought also but I tried an INPUT,1 and
> > had the
> > > >> >> > same result.
> > > >> >> > On Nov 23, 6:15 pm, Daniel Klein <danielklei...@gmail.com>
> > wrote:
> > > >> >> >> Clif,
> > > >> >> >> The error is occurring because you are not telling the
> > program when to
> > > >> >> >> stop accepting INPUT from the spooler.
> > > >> >> >> The important part of the program is where it checks
> > SYSTEM(14) to see
> > > >> >> >> if the spooler is finished.
> > > >> >> >> The part where it builds up and executes the 'cmd' variable
> > is
> > > >> >> >> probably not pertinent for your needs, but the rest of the
> > program can
> > > >> >> >> be used to redirect spooler output to a file by capturing
> > the spooled
> > > >> >> >> output a line-at-a-time and writing it to a sequential file.
> > > >> >> >> Does that help?
> > > >> >> >> Dan
> > > >> >> >> "Rome was not built in a day, but then I was not on that
> > job!"
> > > >> >> >> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <jb...@bristol.us.com>
> > wrote:
> > > >> >> >> > Thanks Dan I did search through previous postings for
> > "Spooler" before
> > > >> >> >> > I posted. I didn't see anything that addresses this
> > particular error.
> > > >> >> >> > What I did find was how to create a program that the
> > spooler will pass
> > > >> >> >> > input to which I can successfully do based on what I wrote
> > below. The
> > > >> >> >> > problem seems to be with my program receiving the input
> > via the INPUT
> > > >> >> >> > or IN statement documented below.
> > > >> >> >> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF
> > <jb...@bristol.us.com> wrote:
> > > >> >> >> >> > jBASE 3.4
> > > >> >> >> >> > Windows 2000
> > > >> >> >> >> > I created a very simple spooler program that receives
> > input from the
> > > >> >> >> >> > spooler and writes it to a directory file. I create the
> > FORMQUEUE
> > > >> >> >> >> > with:
> > > >> >> >> >> > SP-CREATE F1 PROG PRINT.PROG
> > > >> >> >> >> > Here is the code for PRINT.PROG
> > > >> >> >> >> > I know the PRINT.PROG program runs and can write to the
> > file because
> > > >> >> >> >> > if I change line 6 to LINE="TEST", it does write the
> > string TEST to
> > > >> >> >> >> > 1.txt. It looks like it might be a permissions issue
> > but this is on
> > > >> >> >> >> > development system which has admin rights on
> > everything. Anyone have a
> > > >> >> >> >> > direction they can point me in?
> > > >> >> >> > IMPORTANT: Type T24: at the start of the subject line for
> > questions specific to Globus/T24
> > > >> >> >> > To post, send email to jBASE@googlegroups.com
> > > >> >> >> > To unsubscribe, send email to jBASE-
> > unsubscribe@googlegroups.com
> > > >> >> >> > For more options, visit this group
> > athttp://groups.google.com/group/jBASE?hl=en
> > > >> >> > IMPORTANT: Type T24: at the start of the subject line for
> > questions specific to Globus/T24
> > > >> >> > To post, send email to jBASE@googlegroups.com
> > > >> >> > To unsubscribe, send email to jBASE-
> > unsubscribe@googlegroups.com
> > > >> >> > For more options, visit this group
> > athttp://groups.google.com/group/jBASE?hl=en
> > > >> > IMPORTANT: Type T24: at the start of the subject line for
> > questions specific to Globus/T24
> > > >> > To post, send email to jBASE@googlegroups.com
> > > >> > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> > > >> > For more options, visit this group
> > athttp://groups.google.com/group/jBASE?hl=en
> > > > IMPORTANT: Type T24: at the start of the subject line for questions
> > specific to Globus/T24
> > > > To post, send email to jBASE@googlegroups.com
> > > > To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com
> > > > For more options, visit this group
> > athttp://groups.google.com/group/jBASE?hl=en
Yeah but that is the TERM variable for your session and not the background job that is the spooler. I think older releases had a bug whereby if the TERM variable wasn't set then INPUT would fail, and TERM isn't set up for background jobs. You could try to set TERM in your program I suppose, but the best thing to do though is upgrade I think - you are many bugs behind the curve.
> -----Original Message-----
> From: CLIF [mailto:jb...@bristol.us.com]
> Sent: Wednesday, November 25, 2009 10:49 AM
> To: jBASE
> Subject: Re: Spooler print to file program
> The TERM variable, Hmm. What do you mean? I'm setting up the queue
> from the console and running the statement:
> LIST PART (P
> from the console with TERM set to NTCON.
> Is there something more I need to do with the TERM variable?
> On Nov 25, 10:42 am, "Jim Idle" <j...@temporal-wave.com> wrote:
> > Do you have the TERM variable set up?
> > Jim
> > > -----Original Message-----
> > > From: CLIF [mailto:jb...@bristol.us.com]
> > > Sent: Tuesday, November 24, 2009 5:34 PM
> > > To: jBASE
> > > Subject: Re: Spooler print to file program
> > > I have openseq_creates = true. The seq file does get created just
> that
> > > nothing ever gets written into it.
> > > On Nov 24, 5:30 pm, Daniel Klein <danielklei...@gmail.com> wrote:
> > > > I'll also need to see a 'jdiag.out' file (jdiag -vL) and the
> > > > '%JBCRELEASEDIR%\config\Config_EMULATE' file. Include them as
> > > > attachments.
> > > > My guess as to why it is not working is that 'openseq_creates =
> true'
> > > > is not in your 'Config_EMULATE' file under the appropriate
> emulation
> > > > section. So what is happening is it gets to the OPENSEQ line and
> > > > doesn't create the sequential file cos it can't. This theory can
> be
> > > > proved correct by placing a null file called '1.TXT' in the
> 'D:\tmp'
> > > > directory which will satisfy the existence of the sequential file
> so
> > > > that the OPENSEQ line has something to 'open'.
> > > > Therefore, the 'fix' is to add 'openseq_creates = true' to your
> > > > 'Config_EMULATE' file and then there will be no need for the null
> > > > '1.TXT' file to pre-exist.
> > > > Dan
> > > > On Tue, Nov 24, 2009 at 7:29 PM, CLIF <jb...@bristol.us.com>
> wrote:
> > > > > Thanks Dan, here is the code:
> > > > > On Nov 24, 2:31 pm, Daniel Klein <danielklei...@gmail.com>
> wrote:
> > > > >> Post your code and I will show you the error of your ways ;-)
> > > > >> Dan
> > > > >> On Tue, Nov 24, 2009 at 3:22 PM, CLIF <jb...@bristol.us.com>
> > > wrote:
> > > > >> > Thanks Dan, adding the check for system(14) didn't work
> either
> > > but it
> > > > >> > did point me to where the problem is, although I still don't
> > > know how
> > > > >> > to correct it. The problem is system(14) always returns a
> zero
> > > which
> > > > >> > tells me the spooler is not outputting to the stdout which
> is
> > > why
> > > > >> > nothing gets put in the stdin.
> > > > >> > On Nov 24, 5:36 am, Daniel Klein <danielklei...@gmail.com>
> > > wrote:
> > > > >> >> The spooler is not going to set idle (why does this word
> come
> > > up all
> > > > >> >> the time ;-) ) waiting for your program to terminate
> > > > >> >> It doesn't matter HOW you do your input. The code first
> needs
> > > to check
> > > > >> >> to see if there is anything TO input. Otherwise you will
> get
> > > that
> > > > >> >> error.
> > > > >> >> If you are still having problems, post the code.
> > > > >> >> Dan
> > > > >> >> On Mon, Nov 23, 2009 at 9:36 PM, CLIF
> <jb...@bristol.us.com>
> > > wrote:
> > > > >> >> > Yes Dan thats what I thought also but I tried an INPUT,1
> and
> > > had the
> > > > >> >> > same result.
> > > > >> >> > On Nov 23, 6:15 pm, Daniel Klein
> <danielklei...@gmail.com>
> > > wrote:
> > > > >> >> >> Clif,
> > > > >> >> >> The error is occurring because you are not telling the
> > > program when to
> > > > >> >> >> stop accepting INPUT from the spooler.
> > > > >> >> >> The important part of the program is where it checks
> > > SYSTEM(14) to see
> > > > >> >> >> if the spooler is finished.
> > > > >> >> >> The part where it builds up and executes the 'cmd'
> variable
> > > is
> > > > >> >> >> probably not pertinent for your needs, but the rest of
> the
> > > program can
> > > > >> >> >> be used to redirect spooler output to a file by
> capturing
> > > the spooled
> > > > >> >> >> output a line-at-a-time and writing it to a sequential
> file.
> > > > >> >> >> Does that help?
> > > > >> >> >> Dan
> > > > >> >> >> "Rome was not built in a day, but then I was not on that
> > > job!"
> > > > >> >> >> On Mon, Nov 23, 2009 at 1:42 PM, CLIF
> <jb...@bristol.us.com>
> > > wrote:
> > > > >> >> >> > Thanks Dan I did search through previous postings for
> > > "Spooler" before
> > > > >> >> >> > I posted. I didn't see anything that addresses this
> > > particular error.
> > > > >> >> >> > What I did find was how to create a program that the
> > > spooler will pass
> > > > >> >> >> > input to which I can successfully do based on what I
> wrote
> > > below. The
> > > > >> >> >> > problem seems to be with my program receiving the
> input
> > > via the INPUT
> > > > >> >> >> > or IN statement documented below.
> > > > >> >> >> >> > I created a very simple spooler program that
> receives
> > > input from the
> > > > >> >> >> >> > spooler and writes it to a directory file. I create
> the
> > > FORMQUEUE
> > > > >> >> >> >> > with:
> > > > >> >> >> >> > Here is the error I'm getting from the spooler when
> I
> > > do a:
> > > > >> >> >> >> > SP-ASSIGN F1
> > > > >> >> >> >> > LIST PART (P
> > > > >> >> >> >> > I know the PRINT.PROG program runs and can write to
> the
> > > file because
> > > > >> >> >> >> > if I change line 6 to LINE="TEST", it does write
> the
> > > string TEST to
> > > > >> >> >> >> > 1.txt. It looks like it might be a permissions
> issue
> > > but this is on
> > > > >> >> >> >> > development system which has admin rights on
> > > everything. Anyone have a
> > > > >> >> >> >> > direction they can point me in?
> > > > >> >> > IMPORTANT: Type T24: at the start of the subject line for
> > > questions specific to Globus/T24
> > > > >> >> > To post, send email to jBASE@googlegroups.com
> > > > >> >> > To unsubscribe, send email to jBASE-
> > > unsubscribe@googlegroups.com
> > > > >> >> > For more options, visit this group