home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!SUVM.BITNET!SYSBXR
- Message-ID: <CMSPIP-L%92072914551080@VM.MARIST.EDU>
- Newsgroups: bit.listserv.cmspip-l
- Date: Wed, 29 Jul 1992 14:42:00 LCL
- Sender: VM/SP CMS Pipelines Discussion List <CMSPIP-L@MARIST.BITNET>
- From: Bridget Rutty <SYSBXR@SUVM.BITNET>
- Subject: SASTUTOR. FULLSCREEN, and Pipes
- Lines: 53
-
- I'm developing an interface exec for SAS Institutes computer based
- training product. It doesn't work at all if a user tries to execute
- it from fullscreen cms. It also doesn't work if the user has less than
- 4m virtual storage. So I have two pipes in the exec, one which checks
- the virtual storage and gives the user messages if its too small and
- the other queries the fullscreen setting and is supposed to also give
- the user messages. But instead it sends the output of the query to
- the console and does not set the rexx variable. I'm including the
- two pipes below. We are using Pipes 1.5. Is there some trick to
- the query fullscreen?
-
- /* Rexx Program to start the SAS CBT courses */
- /* Two (2) lines require updating in this EXEC */
- /* Line 16 - The location of the 0MAIN SASCBTA catalog */
- /* line 27 - The exec that is used to invoke SAS 6.06 */
- /* Modified by Bridget Rutty - 03/18/92 */
- /* Use Linker pipe subroutine to link and access disk */
- /* Preserve users msg and console settings */
-
- trace
- pushcons
- pushmsg
- conwait
-
- parse upper arg argstring /* Get argument string */
-
- Address Command 'PIPE',
- 'cp query virtual storage', /* How big is the machine? */
- '| spec 11.5 1', /* Strip off what we don't need */
- '| var vsize' /* Save the number */
-
- minstor=4096
- if vsize < minstor
- then do
- say '**Your virtual machine size (' vsize 'K) is too small.'
- say ' A minimum of ' minstor 'K is required to use SASTUTOR.'
- say ' For further help, please call the Information Center, x2677.'
- exit
- end
-
- Address command 'PIPE',
- ' cms query fullscreen ', /* Query fullscreen */
- '| spec word 2 1', /* Select the setting */
- '| var fullset ' /* Save it */
- say fullset
- If fullset = 'ON'
- then do
- say 'SASTUTOR will not work while you are using FULLSCREEN CMS.'
- say ' Please SET FULLSCREEN SUSPEND or SET FULLSCREEN OFF'
- say ' and then run this exec again.'
- say ' For further help, please call the Information Center, x2677.'
- exit
- end
-