¿ªÔÆÌåÓý


Re: Getting Started with VM/CMS

 

¿ªÔÆÌåÓý

The password? which is cmsuser¡­!

So do

?

Logon cmsuser cmsuser

?

Dave

?

From: [email protected] <[email protected]> On Behalf Of Steven Fosdick
Sent: 19 January 2020 19:54
To: [email protected]
Subject: [h390-vm] Getting Started with VM/CMS

?

Hello, I used VM/CMS very briefly during school work experience over 35 years?ago and then came across Hercules and this mailing list and thought I'd have a play with it.

?

I found?

?

and I have downloaded and tried the five pack and six pack systems from there.? In each case I can get to the point where Hercules has started and IPLed VM and several 3270 terminals are connected, but I can't get to the point where I can get any CMS commands to work.

?

I did some searching and found Bob DuCharme's "Operating System Handbook" of which part 5 covers VM/CMS.? This describes a login screen with fields for username, password and command but, although a screen with character art appears, it doesn't have obvious fields to accept a user name or password.? Typing 'logon cmsuser' (as this is listed a valid?username in the sixpack readme) switches to a blank screen with 'CP READ' at the bottom right.? Typing 'IPL CMS' as per Bob's book gives an error message 'DMKCFC001E ?CP: IPL' and just about anything else just gives the message 'restart' in lower case.? The only commands that seem to do anything are logoff and shutdown.

?

What am I missing here?? How can I get to the point where I can issue CMS commands, please?? Is there a better crib sheet/reference I should be using?


Getting Started with VM/CMS

 

Hello, I used VM/CMS very briefly during school work experience over 35 years?ago and then came across Hercules and this mailing list and thought I'd have a play with it.

I found?

and I have downloaded and tried the five pack and six pack systems from there.? In each case I can get to the point where Hercules has started and IPLed VM and several 3270 terminals are connected, but I can't get to the point where I can get any CMS commands to work.

I did some searching and found Bob DuCharme's "Operating System Handbook" of which part 5 covers VM/CMS.? This describes a login screen with fields for username, password and command but, although a screen with character art appears, it doesn't have obvious fields to accept a user name or password.? Typing 'logon cmsuser' (as this is listed a valid?username in the sixpack readme) switches to a blank screen with 'CP READ' at the bottom right.? Typing 'IPL CMS' as per Bob's book gives an error message 'DMKCFC001E ?CP: IPL' and just about anything else just gives the message 'restart' in lower case.? The only commands that seem to do anything are logoff and shutdown.

What am I missing here?? How can I get to the point where I can issue CMS commands, please?? Is there a better crib sheet/reference I should be using?


Re: Hi

 

Test post


New file uploaded to [email protected]

[email protected] Notification
 

Hello,

This email message is a notification to let you know that the following files have been uploaded to the Files area of the [email protected] group.

Uploaded By: adriansutherland67 <adrian@...>

Description:
GCCLIB source code taken from GCCCMS D Drive of Six Pack 1.2

Cheers,
The Groups.io Team


CMSINIT.C

 

Sorry for the cross post.

I need this file otherwise GCCLIB cannot be built.

If we can't find this I will need to backout resident capability and re-implement it (which means I need an example of this working)

If you find it please send all other files on the mini disk.

Adrian


Re: GCCLIB Build Update and Questions

 

On Mon, Jan 6, 2020 at 06:17 PM, adriansutherland67 wrote:
But I am guessing - do I just add a macro to stdlib.h or uncomment in the code in stdlib.c - what was the plan?
After thought, the guys would not have added the stubs if they intended to carry on using define/macro so I am reenabling the c code.

Works with free and malloc - so I will continue :-)??


Re: GCCLIB Build Update and Questions

 

On Mon, Jan 6, 2020 at 06:43 PM, Dave Wade wrote:
my year end clean up....?
Enjoy!


Re: GCCLIB Build Update and Questions

 

OK you asked what happens. Well what should happen is that the SYSPROF calls RESLIB which loads "GCCLIB TEXT" into memory. This contains the real "C" library.?
It then patches the CMS Nucleus to point to the jump table at the start of the code....

... CMSLIB TXTLIB should contain the assembler stubs and gets loaded with the program.?

?Dave
P.S. Not keeping up with this as I am doing my year end clean up....?

On Mon, 6 Jan 2020 at 18:17, adriansutherland67 <adrian@...> wrote:
The new assemble files kind of needed a new c file too - kind of - so

If we look at free for example in stdlib.c
// Note:? free is implemented as a macro.? See stdlib.h.
// void free(void * ptr)
// /***/
// /* void free(void * ptr)????????????????????????????????????????????????????????????????????????? */
// /*??????????????????????????????????????????????????????????????????????????????????????????????? */
// /* Frees the previously allocated memory pointed to by 'ptr'.???????????????????????????????????? */
// /***/
// {
// if (ptr != NULL) CMSmemoryFree(ptr);
// return;
// }???????????????????????????????????????????????????????????????????????????????????? // end of free

but in stdlib.h there is just a normal function prototype!

In cmssys.h we have: #define CMSmemoryFree(s1) (__dmsfrt((s1)))

And in CMSSYS ASSEMBLE we do find it
?*
?* @@DMSFRT? Entry Point?????????????????????????????????????????????? *
?* Release allocated memory.?????????????????????????????????????????? *
?*???????????????????????????????????????????????????????????????????? *

But I am guessing - do I just add a macro to stdlib.h or uncomment in the code in stdlib.c - what was the plan?

Does anyone have a copy of the c code or header files .... please!


Re: GCCLIB Build Update and Questions

 

The new assemble files kind of needed a new c file too - kind of - so

If we look at free for example in stdlib.c
// Note:? free is implemented as a macro.? See stdlib.h.
// void free(void * ptr)
// /***/
// /* void free(void * ptr)????????????????????????????????????????????????????????????????????????? */
// /*??????????????????????????????????????????????????????????????????????????????????????????????? */
// /* Frees the previously allocated memory pointed to by 'ptr'.???????????????????????????????????? */
// /***/
// {
// if (ptr != NULL) CMSmemoryFree(ptr);
// return;
// }???????????????????????????????????????????????????????????????????????????????????? // end of free

but in stdlib.h there is just a normal function prototype!

In cmssys.h we have: #define CMSmemoryFree(s1) (__dmsfrt((s1)))

And in CMSSYS ASSEMBLE we do find it
?*
?* @@DMSFRT? Entry Point?????????????????????????????????????????????? *
?* Release allocated memory.?????????????????????????????????????????? *
?*???????????????????????????????????????????????????????????????????? *

But I am guessing - do I just add a macro to stdlib.h or uncomment in the code in stdlib.c - what was the plan?

Does anyone have a copy of the c code or header files .... please!


GCCLIB Build Update and Questions

 

The current state of play is @ (note in the feature/no-dostran branch).

  1. 0.6 version code and changes for NO DOSTRAN
  2. CMSStdIo - CMSConsoleWrite had the wrong number of params (?!)
  3. Fixed build scripts - it builds on CMSUSER - Disk F Source, Disk E Target
  4. Added the new assemble files to the build script and vtable
  5. Note that there were no changes to c code in the NODOSTRAN source ??
  6. Note that there were no updated build scripts in the NODOSTRAN source ??
  7. It builds but does not really run - missing symbols - see below
  8. I believe that we have some missing source code changes. I have scan reviewed that ASSEMBLE. The NODOSTRAN changes seem to have been applied to all. Just feels that there is something wrong - for example why did I need to fix cmsstdio ... looking at the missing symbols - my theory is I am missing some c files ...

This is the binaries from the tape

GCCLIB?? MACLIB?? E1? F??? 80??? 436???? 44? 2012-05-08 17:30? CMS193
GCCLIB?? TEXT???? E1? F??? 80?? 1623??? 163? 2012-05-08 17:34? CMS193
GCCLIB?? TXTLIB?? E1? F??? 80?? 1218??? 122? 2012-05-08 17:34? CMS193
GCCLIB_S TXTLIB?? E1? F??? 80?? 1640??? 164? 2012-05-08 17:34? CMS193

This is the binaries from my build

GCCLIB?? MACLIB?? E1? F??? 80??? 434???? 44? 2020-01-06 11:35? CMS193
GCCLIB?? TXTLIB?? E1? F??? 80?? 1514??? 152? 2020-01-06 11:36? CMS193
GCCRES?? TXTLIB?? E1? F??? 80?? 1207??? 121? 2020-01-06 11:36? CMS193
GCCLIB?? TEXT???? E1? F??? 80?? 1510??? 151? 2020-01-06 11:36? CMS193

Mine are smaller ....

Why is the file name different - is it just a question of renaming GCCRES to GCCLIB_S - why the change?

Look at the output when I try and load it

GLOBAL TXTLIB GCCLIB
Ready; T=0.01/0.01 14:31:49
RESLIB LOAD GCCLIB (NAME GCCLIB
THE FOLLOWING NAMES ARE UNDEFINED:
?CMSINI?? FGETPO?? FREE???? FSEEK??? FSETPO?? FSPOIN?? LOCALC?? MALLOC
?REWIND?? STRICM?? STRLWR?? STRUPR
Ready(00004); T=0.01/0.03 14:31:57
???
GLOBAL TXTLIB GCCLIB? GCCRES
Ready; T=0.01/0.01 14:33:56
RESLIB LOAD GCCLIB (NAME GCCLIB
THE FOLLOWING NAMES ARE UNDEFINED:
?CMSINI?? FGETPO?? FSETPO?? FSPOIN?? LOCALC?? STRICM?? MAIN
Ready(00004); T=0.02/0.03 14:34:08

I think I am missing something ... or (and this is very possible) I am being stupid! :-)

Finally, In STDIO I mostly see some lines like
__asm__(LOADCRAB : "=d" (theCRAB));
but there is one like
__asm__("L %0,72(13)" : "=d" (theCRAB));???
Is this just a bug do folks think?


Re: YREGS

 

The source of YREGs is here

Jim

On Sun, Jan 5, 2020 at 1:55 AM adriansutherland67 <adrian@...> wrote:
Gary - confirmed - thanks!


Re: YREGS

 

Gary - confirmed - thanks!


Re: YREGS

 

Per GC20-1818-3 IBM Virtual Machine Facility 370 CMS Command and Macro Reference Rel 6, the REGEQU member is located in the CMSLIB MACLIB. I fired up my VM/370 6 pack and verified that it is located in the MACLIB and is on the S disk.

The documentation that I have, both hardcopy and softcopy indicates that REGEQU remains there through the early releases of z/VM.

Regards,

Gary


Re: YREGS

 

Thanks ... When I figure out where it is I will post here in case anyone cares in the future ?


Re: YREGS

 

On z/OS systems today YREGS is just a simple assembler macro introduced to
MVS in 1992 as part of DFSMS V1 (5695-DF1) which consists of simple general
register equates like this:

R0 EQU 0
R1 EQU 1
Etc. up to R15

I would post the entire current z/OS version from SYS1.MACLIB but it is
marked as a copyrighted source so I didn't.

It probably made its way into later versions of one of VM's system MACLIB's,
but not having access to any of those I can't tell you which one.

Peter

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Peter Coghlan
Sent: Saturday, January 4, 2020 2:28 PM
To: [email protected]
Subject: Re: [h390-vm] YREGS


Sorry for the cross posting - but has anyone got the source for this
macro they can copy and paste to me?

Or does anyone know where it is found on the sixpack?
That's one I've not come across.

If you tell us what you need it for (or if possible, what it does), it
might be easier
to suggest places to look for it or possible replacements to use instead
of it.

Regards,
Peter Coghlan.
--


Re: YREGS

 

Peter - thank you for your reply.

In fact there is a macro - REGEQU - I was missing a global maclib (I am going to use trial an error to find the actual one - I just added all I could find!)


Re: YREGS

 


Sorry for the cross posting - but has anyone got the source for this macro
they can copy and paste to me?

Or does anyone know where it is found on the sixpack?
That's one I've not come across.

If you tell us what you need it for (or if possible, what it does), it
might be easier to suggest places to look for it or possible replacements
to use instead of it.

Regards,
Peter Coghlan.


YREGS

 

Sorry for the cross posting - but has anyone got the source for this macro they can copy and paste to me?

Or does anyone know where it is found on the sixpack?

Thanks

Adrian


Re: GCCLIB

 

That seemed to run ok ... but I will compare with the pre built ones to see if anything is missing. And week search for the symbols.

CMSCRAB ... When crabs get to your eyebrows, well that's the 3rd stage ...


Re: GCCLIB

 

¿ªÔÆÌåÓý

I haven¡¯t looked but I would guess a MACLIB is missing.

?

MKGCCMAC ?EXEC

?

Might be relevant

?

Dave

?

From: [email protected] <[email protected]> On Behalf Of adriansutherland67
Sent: 03 January 2020 18:43
To: [email protected]
Subject: Re: [h390-vm] GCCLIB

?

I have combined all the source and am trying to build in CMSUSER - there is some logic, I want the build to be kind of standalone (or at least I want to understand all the dependencies). I want to automate all these builds.

Anyway for MKGCCLIB - I get (first page)

ASSEMBLI CMSENTRY

?

ASSEMBLER (XF) DONE

? ? ? ? ? ? ? ?73? ? ? ? ? USING CMSCRAB,R13

IFO188 CMSCRAB IS AN UNDEFINED SYMBOL

IFO217 RELOCATABILITY ERROR NEAR OPERAND COLUMN 8

? ? ? ? ? ? ? ?74? ? ? ? ? LA? ? R2,MAINSTK? ? ?where the GCC stack begins

IFO188 MAINSTK IS AN UNDEFINED SYMBOL

? ? ? ? ? ? ? ?75? ? ? ? ? ST? ? R2,STACKNXT? ? next available spot in stack

IFO188 STACKNXT IS AN UNDEFINED SYMBOL

? ? ? ? ? ? ? ?76? ? ? ? ? ST? ? R13,GCCCRAB? ? address of CRAB

IFO188 GCCCRAB IS AN UNDEFINED SYMBOL

? ? ? ? ? ? ? ?80? ? ? ? ? LA? ? R2,CONIFILE? ? address of console input FILE st

ructure

IFO188 CONIFILE IS AN UNDEFINED SYMBOL

? ? ? ? ? ? ? ?81? ? ? ? ? ST? ? R2,CONFILIN? ? and store it here

IFO188 CONFILIN IS AN UNDEFINED SYMBOL

? ? ? ? ? ? ? 100? ? ? ? ? LA? ? R2,CONOFILE? ? address of console output FILE s

tructure

IFO188 CONOFILE IS AN UNDEFINED SYMBOL

?

Which tells me something important is missing!!

Any hints? :-)

Adrian