LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 18 Sep 2006 08:23:54 -0700
Reply-To:   Rune Runnestø <rune@FASTLANE.NO>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Rune Runnestø <rune@FASTLANE.NO>
Organization:   http://groups.google.com
Subject:   Error when trying to start an AF application
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset="iso-8859-1"

Hi,

The code below is from a file called AUTOEXEC.SAS that has the purpose to start an AF application. The file AUTOEXEC.SAS has the path 'D:\myapplication\AUTOEXEC.SAS'.

It's a while since I last time submitted the code, but it worked fine then. Meanwhile, I have upgraded from version 8 to 9 of SAS.

The application used to present a GUI for the user. I think the program was developed with version 8 of SAS. I wonder if the error message I get from the log when submitting this AUTOEXEC.SAS file is because I am running version 9 of SAS now. If that is so, I wonder if anyone with a glance can see if and eventually what can be done to upgrade the code so I can run it on version 9.

/* ------------ Defining libref for the application: -----------------*/ %let SYSTEM = SYSTEM; /* libref of system */

/* ------------ Defining path for the application -------------*/ %Let BASISOMR = D:\myapplication ; %Let p_system = &BASISOMR.\system;

/* ------------ Assigning LIBREF ------------------------------------------*/ Libname system "&p_system"; Libname applib "&BASISOMR.\Afprog";

*--- FILENAMES --- Windows API ; Filename SasCbtBl "&BASISOMR.\System\APIDesc.txt";

/* ------- Options that have to be defined before application invocation --*/ Options font='Sasfont' 8; Options FORMCHAR = "|----|+|---+=|-/\<>*" ; Options noxwait noxsync awsmenumerge validvarname = any ;

/* ------------------------------------- Starting system */

dm 'af c=applib.main.hoved.frame' af;

This is some of what I get in the log:

48 Options noxwait 49 noxsync 50 awsmenumerge 51 validvarname = any ; WARNING: Only Base procedures and SAS/STAT procedures have been tested for use with VALIDVARNAME=ANY. Other use of this option is considered experimental and may cause undetected errors. 52 53 /* ------------------------------------- Starting system */ 54 55 56 57 58 59 dm 'af c=applib.main.hoved.frame' af; ERROR: Catalog APPLIB.MAIN does not exist. ERROR: No previous AF invocation, use AF C=library.catalog.entry.type

Regard, Rune


Back to: Top of message | Previous page | Main SAS-L page