Posted: Wed Mar 23, 2005 7:39 pm Post subject: SAS and SMF
I had a SAS6 job at anouther site that I could run That would show the history of a DSN ussed is there any utilities out there that can use I have tried to use this jcl and it can not find the program. I can see the program in the sys2.parmlib can anyone help
IF &FULLHIST = 'Y'
THEN DO;
IF TYPE = 14 | TYPE = 15
THEN DO;
INPUT @39 DEVTYP PIB1.
@65 DSN $CHAR44.
@152 JFCDISP PIB1.;
IF JFCDISP = '....1...'B THEN DISP = 'SHR';
ELSE
IF JFCDISP = '11......'B THEN DISP = 'NEW';
ELSE
IF JFCDISP = '1.......'B THEN DISP = 'MOD';
ELSE
IF JFCDISP = '.1......'B THEN DISP = 'OLD';
ELSE DISP = '***';
IF TYPE = 14 THEN HISTORY = 'INPUT';
ELSE
IF TYPE = 15 THEN HISTORY = 'OUTPUT';
IF JFCDISP = '.......1'B THEN DELETE;
END;
END;
IF TYPE = 61
THEN DO;
INPUT @47 JOBNAME $CHAR8.@
@116 ENTYP $1.
@117 DSN $CHAR44.@;
HISTORY = 'OUTPUT'; DISP = 'NEW';
IF ENTYP ^= 'C' THEN DELETE;
END;
IF CDELRECS ^= '0' |
CINSRECS ^= '0' |
CUPDRECS ^= '0'
THEN DO;
HISTORY = 'OUTPUT';
DISP = 'OLD';
END;
ELSE DO;
HISTORY = 'INPUT';
DISP = 'SHR';
END;
END;
IF TYPE = 65
THEN DO;
INPUT @47 JOBNAME $CHAR8.@
@71 FUNCTION $1.
@116 ENTYP $1.
@117 DSN $CHAR44.@;
HISTORY = 'SCRATCHED'; DISP = 'OLD';
END;
IF TYPE = 66
THEN DO;
INPUT @47 JOBNAME $CHAR8.@
@71 FUNCTION $CHAR1.@
@117 DSN $CHAR44.@
@161 NEWNAME $CHAR44.@;
HISTORY = 'RENAMED ' || NEWNAME;
DISP = 'OLD';
IF FUNCTION ^= 'R' THEN DELETE;
END;
DATE = DATEPART(TIMEDATE); FORMAT DATE DATE7.;
TIME = TIMEPART(TIMEDATE); FORMAT TIME TIME8.;
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Wed Mar 23, 2005 8:52 pm Post subject:
Fonrob,
The first thing you need to check is that your shop has a daily back up of smfdata. And also your shop needs to have MXG componenent licence of sas to be able to read the smf dump.
Btw what is the error message you get when trying to run the above jcl? Are you abending with s806? or someother error? post your error messages.
I made some changes and now the job is running with no error codes but not producing any output. here is what the message is in the SASLOG
I Changed the sas program and dsn to what the datacenter reqiures.
NOTE: The SASUSER library was not specified. SASUSER library will now be the same
NOTE: All data sets and catalogs in the SASUSER library will be deleted at the end of the session. Use the NOWORKTERM,option,to
prevent their deletion.
NOTE: SAS system options specified are:
SORT=4 MACRO
NOTE: 33554432 bytes were available above the line at initialization.
NOTE: 2162688 bytes were available below the line at initialization.
NOTE: 33030144 bytes were available above the line after adjustment for MEMLEAVE=524288[/b]
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum