开云体育


Re: IBM BASIC Language - Compiler messages not displayed

 

开云体育

Ralf,

Well now you are happy, I have to see what is stopping the error messages.

Dave

?

From: [email protected] <[email protected]> On Behalf Of Ralf Straube
Sent: Friday, February 2, 2024 11:15 AM
To: [email protected]
Subject: [h390-vm] IBM BASIC Language - Compiler messages not displayed

?

Hi Dave,

"ACCESS (NOPROF" did it! Now BASIC shows every compiler error and warning message I was able to generate, Thank you very much for your assistance. I also learned from your answer more about user profiles in VM, many thanks also for that.

PS:
By the way, error #2 in my test program isn't a compiler error: an integer variable and an array declared with the same name are obviously treated as different objects - but an array which is declared a second time with different dimensions will cause the intended "invalid array declaration" error message.?


Greetings

Ralf?


IBM BASIC Language - Compiler messages not displayed

 

Hi Dave,

"ACCESS (NOPROF" did it! Now BASIC shows every compiler error and warning message I was able to generate, Thank you very much for your assistance. I also learned from your answer more about user profiles in VM, many thanks also for that.

PS:
By the way, error #2 in my test program isn't a compiler error: an integer variable and an array declared with the same name are obviously treated as different objects - but an array which is declared a second time with different dimensions will cause the intended "invalid array declaration" error message.?


Greetings

Ralf?


Re: IBM BASIC Language - Compiler messages not displayed

 

开云体育

Ralf,

Pretty sure it one of the profile files. Instead of hitting enter at the VM READ prompt at login type :-

?

“ACCESS (NOPROF”

?

And test again please…

… you will have to use EDIT rather than EE but of course you can swap between environment by doing “IPL CMS” and hitting “enter” to have EE, or “ACCESS (NOPROF”

It all seems to work for me logged on as CMSUSER.

?

Dave

?

From: [email protected] <[email protected]> On Behalf Of Ralf Straube
Sent: Thursday, February 1, 2024 9:53 PM
To: [email protected]
Subject: [h390-vm] IBM BASIC Language - Compiler messages not displayed

?

Hi Dave,

thank you very much for your reply. I made the changes to SYSPROFB EXEC, but the result was the same as before. After that, trying to find different test cases, not only a simple syntax error by misspelling a BASIC command, I found out that it's a little bit more complicated: one error out of three produced the expected error message, the other two only led to a return code of 264 in the CMS Ready Message without error message. It's error #1 from my test program below. Of course I tested them one at a time, because the compiler stops at the first error it finds.? ?

10 REM "BASIC TEST PROGRAM"? ? ? ? ? ? ? ??

20 FOR I = 1 TO 10? ? ? ? ? ? ? ? ? ? ? ? ?

30 PRINT "HELLO BASIC WORLD"? ? ? ? ? ? ? ?

49 REM ERROR #1: FOR/NEXT LOOP INCOMPLETE? (NEXT STATEMENT COMMENTED OUT)?

50 REM NEXT I? ? ? ? ? ? ? ? ? ? ? ? ? ? ??

60 REM ERROR #2: INVALID ARRAY DECLARATION? (VARIABLE I IS ALREADY IMPLICITLY DECLARED)

70 DIM I(1,1)? ? ? ? ? ? ? ? ? ? ? ? ? ? ??

90 REM ERROR #3: SYNTAX ERROR IN EXPRESSION (LOT INSTEAD OF LET)

90 LOT X = 1? ? ? ? ? ? ? ? ? ? ? ? ? ? ??

100 END? ?

Maybe it's the compiler itself and not the CMS environment??

Ralf?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


IBM BASIC Language - Compiler messages not displayed

 

Hi Dave,

thank you very much for your reply. I made the changes to SYSPROFB EXEC, but the result was the same as before. After that, trying to find different test cases, not only a simple syntax error by misspelling a BASIC command, I found out that it's a little bit more complicated: one error out of three produced the expected error message, the other two only led to a return code of 264 in the CMS Ready Message without error message. It's error #1 from my test program below. Of course I tested them one at a time, because the compiler stops at the first error it finds.? ?

10 REM "BASIC TEST PROGRAM"? ? ? ? ? ? ? ??
20 FOR I = 1 TO 10? ? ? ? ? ? ? ? ? ? ? ? ?
30 PRINT "HELLO BASIC WORLD"? ? ? ? ? ? ? ?
49 REM ERROR #1: FOR/NEXT LOOP INCOMPLETE? (NEXT STATEMENT COMMENTED OUT)?
50 REM NEXT I? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
60 REM ERROR #2: INVALID ARRAY DECLARATION? (VARIABLE I IS ALREADY IMPLICITLY DECLARED)
70 DIM I(1,1)? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
90 REM ERROR #3: SYNTAX ERROR IN EXPRESSION (LOT INSTEAD OF LET)
90 LOT X = 1? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
100 END? ?

Maybe it's the compiler itself and not the CMS environment??

Ralf?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


Re: I forgot: How does one read a print / console spool file to CMS disk

 

Bertram Moshier wrote:
Fish wrote:
Bertram Moshier wrote:
[...]
q rdr 1803 all#readcard operator con a
OWNERID FILE CLASS RECDS CPY HOLD DATE TIME
OPERATOR 1803 A CON 000065 01 USER 01/22 00:44:15
Ready; T=0.01/0.01 15:52:09
READER EMPTY OR NOT READY.
Ready(00008); T=0.01/0.01 15:52:09
[...]
The virtual reader is ready class a and the console file
in the reader is class a. What am I missing?
This:

OWNERID FILE CLASS RECDS CPY HOLD DATE TIME ...
OPERATOR 1803 A CON 000065 01 USER 01/22 00:44:15
^^^^
^^^^
^^^^
Hello,

I'm sorry, I don't get it. The class is correct, as they are
both class A.
Correct.


As for CON (console), I asked earlier how to read a print (console)
file onto a CMS disk. The reply was to use the transfer command
to move the spool file from the print to reader and then read it
into the CMS machine.
Correct.

What is the correct command to move the console spool file to a CMS
file system?
The exact command you used above. ;-)

But you're asking the wrong question. ;-)

Your question shouldn't be "What is the correct command to move the console spool file to a CMS file system?", because that question has already been asked and answered.

The question you SHOULD be asking is the same as what you asked previously: "What am I [still] missing?" ;-)

Previously, you asked "What am I missing?", to which I replied "This:", and then proceeded to TRY and point out the thing that you were missing.

But the fact that you didn't "get" (see/understand) what I was trying to show you is probably my fault. I *should* have told you (but failed to do so; my apologies for that) is that you needed to view my response using a Fixed Pitch (Monospaced) font. When you do that what I was trying to show you should hopefully become clear.

I'm hoping if you go back and re-read my replying using a fixed pitch monospaced font, your problem will reveal itself. If it doesn't however, I was TRYING in my response to underline the "HOLD" column on your "q rdr 1803 all" results display. If you'll notice, your reader queue entry is listed as being in "HOLD" (held) status.

(I always read and reply to emails using plain text, not HTML. In my experience HTML is *rarely* ever needed, and frequently causes alignment problems since proportional (variable spaced) fonts are almost always used with HTML emails, and most of the mainframe shit we deal with is textual, that isn't displayed on your terminal or printed in your listing using proportional fonts!)

The bit of information that you were failing to grasp/see was, before you can read in a reader file that is in HOLD status, you need to first alter it to NOHOLD status:


ch rdr 1803 nohold


THEN your readcard command *should* work just fine.

Sorry for not explicitly telling you what your problem was. I was *hoping* you'd figure it out for yourself with the clue I provided. But I failed to tell you to view my answer in a fixed pitch monospaced font. My bad. :(

Please understand that I don't always like to give direct answers to peoples' questions. Instead, I try to help them by giving them enough information (hints) that they can then learn how to figure out their problem for themselves. A wise man once said:


"You cannot help men permanently by doing for them
what they could and should do for themselves."

-- Reverend William John Henry Boetcker


(Yeah, I can be a prick sometimes. So sue me! I'm only trying to *TRULY* help people.)

--
"Fish" (David B. Trout)
Software Development Laboratories

mail: fish@...


Re: I forgot: How does one read a print / console spool file to CMS disk

 

On Thu, Feb 1, 2024 at 10:22 AM, Bertram Moshier wrote:
What is the correct command to move the console spool file to a CMS file system?
?

The READCARD you coded should do the work. However, looking at the output of the QUERY command just before, I see the HOLD status is USER. I think it means the spool file is held so you can't save it to a CMS file. Try to change the HOLD status first:

cp change rdr 1803 nohold

and then do the READCARD.

Cheers,

Rene FERLAND, Montreal


Re: I forgot: How does one read a print / console spool file to CMS disk

 

开云体育

hi

RECEIVE moves a file from spool to your disk.

something like

RECEIVE spoolid = =

or

RECEIVE spooldid fn ft fm


best regards

Mike

On 2024-02-01 19:22, Bertram Moshier wrote:
Hello,

I'm sorry, I don't get it.? The class is correct, as they are both class A.

As for CON (console), I asked earlier how to read a print (console) file onto a CMS disk.? The reply was to use the transfer command to move the spool file from the print to reader and then read it into the CMS machine.

What is the correct command to move the console spool file to a CMS file system?

Thank you.

On Thu, Feb 1, 2024 at 10:32?AM Fish Fish <david.b.trout@...> wrote:
Bertram Moshier wrote:

[...]
> q rdr 1803 all#readcard operator con a
> OWNERID? FILE CLASS RECDS? CPY HOLD DATE? TIME? ? ?NAME? ? ? ? TYPE
> DIST
> OPERATOR 1803 A CON 000065? 01 USER 01/22 00:44:15
> Ready; T=0.01/0.01 15:52:09
>? READER EMPTY OR NOT READY.
> Ready(00008); T=0.01/0.01 15:52:09

[...]
> The virtual reader is ready class a and the console file
> in the reader is class a.? What am I missing?

This:

? ?OWNERID? FILE CLASS RECDS? CPY HOLD DATE? TIME ...
? ?OPERATOR 1803 A CON 000065? 01 USER 01/22 00:44:15
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^
--
"Fish" (David B. Trout)
Software Development Laboratories

mail: fish@...










-- 

mit freundlichen Grü?en / best regards
Mike Beer
----------------------------------------------------
Mag. Michael Beer
Spitalgasse 1a/12a, 1090 Wien


Re: I forgot: How does one read a print / console spool file to CMS disk

 

Hello,

I'm sorry, I don't get it.? The class is correct, as they are both class A.

As for CON (console), I asked earlier how to read a print (console) file onto a CMS disk.? The reply was to use the transfer command to move the spool file from the print to reader and then read it into the CMS machine.

What is the correct command to move the console spool file to a CMS file system?

Thank you.

On Thu, Feb 1, 2024 at 10:32?AM Fish Fish <david.b.trout@...> wrote:
Bertram Moshier wrote:

[...]
> q rdr 1803 all#readcard operator con a
> OWNERID? FILE CLASS RECDS? CPY HOLD DATE? TIME? ? ?NAME? ? ? ? TYPE
> DIST
> OPERATOR 1803 A CON 000065? 01 USER 01/22 00:44:15
> Ready; T=0.01/0.01 15:52:09
>? READER EMPTY OR NOT READY.
> Ready(00008); T=0.01/0.01 15:52:09

[...]
> The virtual reader is ready class a and the console file
> in the reader is class a.? What am I missing?

This:

? ?OWNERID? FILE CLASS RECDS? CPY HOLD DATE? TIME ...
? ?OPERATOR 1803 A CON 000065? 01 USER 01/22 00:44:15
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^
--
"Fish" (David B. Trout)
Software Development Laboratories

mail: fish@...











Re: I forgot: How does one read a print / console spool file to CMS disk

 

Bertram Moshier wrote:

[...]
q rdr 1803 all#readcard operator con a
OWNERID FILE CLASS RECDS CPY HOLD DATE TIME NAME TYPE
DIST
OPERATOR 1803 A CON 000065 01 USER 01/22 00:44:15
Ready; T=0.01/0.01 15:52:09
READER EMPTY OR NOT READY.
Ready(00008); T=0.01/0.01 15:52:09
[...]
The virtual reader is ready class a and the console file
in the reader is class a. What am I missing?
This:

OWNERID FILE CLASS RECDS CPY HOLD DATE TIME ...
OPERATOR 1803 A CON 000065 01 USER 01/22 00:44:15
^^^^
^^^^
^^^^
--
"Fish" (David B. Trout)
Software Development Laboratories

mail: fish@...


Re: I forgot: How does one read a print / console spool file to CMS disk

 

Hello again,

Unfortunately, I'm finding my memory is not what it used to be about VM.? This is what I'm doing and seeing.? What am I doing wrong?

q rdr 1803 all#readcard operator con a
OWNERID ?FILE CLASS RECDS ?CPY HOLD DATE ?TIME ? ? NAME ? ? ? ?TYPE ? ? DIST?
OPERATOR 1803 A CON 000065 ?01 USER 01/22 00:44:15 ?
Ready; T=0.01/0.01 15:52:09 ?
?READER EMPTY OR NOT READY.
Ready(00008); T=0.01/0.01 15:52:09

q v c?
15:56:08 RDR ?00C CL A ?NOCONT NOHOLD ? EOF ? ? ?READY
Ready; T=0.01/0.01 15:56:08?

The virtual reader is ready class a and the console file in the reader is class a.? What am I missing?

Thanks.

On Wed, Jan 31, 2024 at 11:52?PM Bertram Moshier via <herc370390vm=[email protected]> wrote:
Thank you!? Transfer command.? I forgot about it.

On Wed, Jan 31, 2024, 19:43 Fish Fish <david.b.trout@...> wrote:
Bertram Moshier wrote:

[...]
> I'll have to look at the Profile Exec.? Right now the
> console went to the Print Queue not reader.
>
> How do I look at the printer spool file without burning
> some trees?

You have 2 choices, depending on whether it was actually printed or not. Just because something is routed to the [usually system] print queue does necessarily mean it will get physically printed. A lot of times printouts sit in the [system] print queue with a print class different from the one the system printer is currently started with, or with a hold disposition. If that's the case then your first choice is to simply transfer it back to your virtual reader queue.

If it's actually being physically printed however (i.e. trees are actually being burnt) and you don't want that to happen, then your second choice is the change whatever 'spool' command there is in your profile exec to spool things back to yourself instead (or add such a statement if one doesn't already exist).

--
"Fish" (David B. Trout)
Software Development Laboratories

mail: fish@...










Re: I forgot: How does one read a print / console spool file to CMS disk

 

Thank you!? Transfer command.? I forgot about it.


On Wed, Jan 31, 2024, 19:43 Fish Fish <david.b.trout@...> wrote:
Bertram Moshier wrote:

[...]
> I'll have to look at the Profile Exec.? Right now the
> console went to the Print Queue not reader.
>
> How do I look at the printer spool file without burning
> some trees?

You have 2 choices, depending on whether it was actually printed or not. Just because something is routed to the [usually system] print queue does necessarily mean it will get physically printed. A lot of times printouts sit in the [system] print queue with a print class different from the one the system printer is currently started with, or with a hold disposition. If that's the case then your first choice is to simply transfer it back to your virtual reader queue.

If it's actually being physically printed however (i.e. trees are actually being burnt) and you don't want that to happen, then your second choice is the change whatever 'spool' command there is in your profile exec to spool things back to yourself instead (or add such a statement if one doesn't already exist).

--
"Fish" (David B. Trout)
Software Development Laboratories

mail: fish@...










Re: I forgot: How does one read a print / console spool file to CMS disk

 

On Wed, Jan 31, 2024 at 19:35 Bertram Moshier <herc370390vm@...> wrote:
How do I look at the printer spool file without burning some trees?

When Hercules creates a printer device, it typically dumps the data written to the printer into a disk file on the host machine.? You could let the file "print" to that file, then open it up in your favorite Linux or Windows file trading program.

CP START 00E

(or whatever other printer you've got defined) from a suitably authorized VM user will start printing whatever is in the PRT queue.

Ross


Re: I forgot: How does one read a print / console spool file to CMS disk

 

Bertram Moshier wrote:

[...]
I'll have to look at the Profile Exec. Right now the
console went to the Print Queue not reader.

How do I look at the printer spool file without burning
some trees?
You have 2 choices, depending on whether it was actually printed or not. Just because something is routed to the [usually system] print queue does necessarily mean it will get physically printed. A lot of times printouts sit in the [system] print queue with a print class different from the one the system printer is currently started with, or with a hold disposition. If that's the case then your first choice is to simply transfer it back to your virtual reader queue.

If it's actually being physically printed however (i.e. trees are actually being burnt) and you don't want that to happen, then your second choice is the change whatever 'spool' command there is in your profile exec to spool things back to yourself instead (or add such a statement if one doesn't already exist).

--
"Fish" (David B. Trout)
Software Development Laboratories

mail: fish@...


Re: I forgot: How does one read a print / console spool file to CMS disk

 

OK, Thank you.

I'll have to look at the Profile Exec.? Right now the console went to the Print Queue not reader.

How do I look at the printer spool file without burning some trees?

Thanks.


On Wed, Jan 31, 2024, 17:09 Mike Ward <antebios1153@...> wrote:

CP Spool con start to * cl a

?

Do your stuff

?

?

At end

?

CP Spool con stop close

?

When the file goes to the reader you can then do a readfile of it to your cms disk.

?

From: [email protected] <[email protected]> On Behalf Of Bertram Moshier
Sent: Wednesday, January 31, 2024 4:45 PM
To: [email protected]
Subject: [h390-vm] I forgot: How does one read a print / console spool file to CMS disk

?

Hello,

?

In the pofile?exec, I start the console for the operator.? I forgot how to process the print / console files, so I can edit them later on (e.g., read them to CMS disk).? How do?I do it, please?.

?

I remember reading cards, but those were reader files, not print files.

?

Thank you.


Re: I forgot: How does one read a print / console spool file to CMS disk

 

开云体育

CP Spool con start to * cl a

?

Do your stuff

?

?

At end

?

CP Spool con stop close

?

When the file goes to the reader you can then do a readfile of it to your cms disk.

?

From: [email protected] <[email protected]> On Behalf Of Bertram Moshier
Sent: Wednesday, January 31, 2024 4:45 PM
To: [email protected]
Subject: [h390-vm] I forgot: How does one read a print / console spool file to CMS disk

?

Hello,

?

In the pofile?exec, I start the console for the operator.? I forgot how to process the print / console files, so I can edit them later on (e.g., read them to CMS disk).? How do?I do it, please?.

?

I remember reading cards, but those were reader files, not print files.

?

Thank you.


I forgot: How does one read a print / console spool file to CMS disk

 

Hello,

In the pofile?exec, I start the console for the operator.? I forgot how to process the print / console files, so I can edit them later on (e.g., read them to CMS disk).? How do?I do it, please?.

I remember reading cards, but those were reader files, not print files.

Thank you.


Re: IBM BASIC Language - Compiler messages not displayed

 

开云体育

Ralf,

Looks like it is something to do with loading REXX into memory. If you copy SYSPROFB EXEC onto the A disk and then comment out the RESLIB LOAD and DMSREX lines it works but you have no REXX.

Can you test this and confirm it fixes it, I’ll see if I can figure out what is messing it up.

Dave

?

?

From: [email protected] <[email protected]> On Behalf Of Ralf Straube
Sent: Wednesday, January 31, 2024 12:56 PM
To: [email protected]
Subject: [h390-vm] IBM BASIC Language - Compiler messages not displayed

?

When playing around with the IBM BASIC compiler, I wonder why there isn‘t displayed any compiler error message when compiling a program with intentionally inserted syntax errors. Messages from the BASIC interface and from program execution on the other hand are displayed as expected. I don‘t believe that the reason is a missing FILEDEV, because as far as I know, CALL/360, where this compiler derives from, was a terminal oriented environment just like CMS. There is no difference between BASIC in VM/370 CE and VM Six Pack. Has anyone ever seen messages from the BASIC compiler or am I missing something?

Many thanks for a hint.

Cheers?

Ralf Straube





?


Re: IBM BASIC Language - Compiler messages not displayed

 

开云体育

Ralf,

It was probably only tested with valid programs. I did get it to produce error messages once, but I can’t figure out how I did it ….

Dave

?

From: [email protected] <[email protected]> On Behalf Of Ralf Straube
Sent: Wednesday, January 31, 2024 12:56 PM
To: [email protected]
Subject: [h390-vm] IBM BASIC Language - Compiler messages not displayed

?

When playing around with the IBM BASIC compiler, I wonder why there isn‘t displayed any compiler error message when compiling a program with intentionally inserted syntax errors. Messages from the BASIC interface and from program execution on the other hand are displayed as expected. I don‘t believe that the reason is a missing FILEDEV, because as far as I know, CALL/360, where this compiler derives from, was a terminal oriented environment just like CMS. There is no difference between BASIC in VM/370 CE and VM Six Pack. Has anyone ever seen messages from the BASIC compiler or am I missing something?

Many thanks for a hint.

Cheers?

Ralf Straube





?


IBM BASIC Language - Compiler messages not displayed

 

When playing around with the IBM BASIC compiler, I wonder why there isn‘t displayed any compiler error message when compiling a program with intentionally inserted syntax errors. Messages from the BASIC interface and from program execution on the other hand are displayed as expected. I don‘t believe that the reason is a missing FILEDEV, because as far as I know, CALL/360, where this compiler derives from, was a terminal oriented environment just like CMS. There is no difference between BASIC in VM/370 CE and VM Six Pack. Has anyone ever seen messages from the BASIC compiler or am I missing something?

Many thanks for a hint.

Cheers?

Ralf Straube






?


Re: Missing MVS Macro Calls

 

On Fri, Jan 26, 2024 at 10:40 AM, Dave Wade wrote:
Has anyone ever added the extra SVCs to the OS emulation to fill in some of the gaps?
Which ones are missing? Wondering if a careful port from MVS of those MACROs would be the ticket? OR ... Is that what you are asking?

?... Mark S.