Hi,

While I am trying to produce a html report from SAS
interactive screen, I am always getting an error. I have
attached the result of interactive execution with this.
Please help me on this.
NOTE: All profile changes will be lost at the end of the
session.
1 *libname
ia 'U19K.CAPS.SAS';
2

3 /*Data
declaration*/
4 data
work.staff;

5 infile 'U19K.CAPS.SAS
(RAWDATA1)';
6 input LastName $ 1-10 FirstName $ 11-
20
7 JobTitle $ 21-23 Salary 24-
28
8 BirthDat $ 29-37 Gender $
38
9
run;

10

11 /*Basic "format"
statement*/
12 /*assign range of values to a variable and use
it*/
13 /*'$' should be used for a alphanumeric
manipulation*/
NOTE: The infile 'U19K.CAPS.SAS(RAWDATA1)'
is:
Dsname=U19K.CAPS.SAS
(RAWDATA1),

Unit=3390,Volume=XTD007,Disp=SHR,Blksize=6160,


Lrecl=80,Recfm=FB



NOTE: 20 records were read from the infile 'U19K.CAPS.SAS
(RAWDATA1)'.
NOTE: The data set WORK.STAFF has 20 observations and 7
variables.
NOTE: The DATA statement used 0.01 CPU seconds and
7537K.


NOTE: The address space has used a maximum of 3676K below
the line and
15196K above the
line.




14 proc
format;

15 value Salrange low-
10000='Below'
16 10001-
20000='Medium'
17 20001-
High='Above';
NOTE: Format SALRANGE has been
output.
18 value $Gender
F='Female'
19
M='Male';
NOTE: Format ÅGENDER has been
output.
20
run;



NOTE: The PROCEDURE FORMAT used 0.00 CPU seconds and
7523K.


NOTE: The address space has used a maximum of 3676K below
the line and
15196K above the
line.




21

22 /*ODS-Output delivery system to create html
file*/
23 ods listing
close;
24 ods html file='C:\Documents and
Settings\u19k\Desktop\html1.html';
NOTE: Writing HTML Body file: C:\Documents
and

Settings\u19k\Desktop\html1.html

ERROR: Invalid file, C:\DOCUMENTS AND
SETTINGS\U19K\DESKTOP\HTML1.HTML.
WARNING: No body file. HTML output will not be
created.
25

26 /*Basic "label"
statement*/
27 proc print data=work.staff
split='';
28 label LastName='Last
Name'
29 FirstName='First
Name'
30 JobTitle='Job
Title'
31 Salary='Annual
Salary';
32 format Salary Salrange. Gender
$Gender.;
33 var LastName FirstName JobTitle Salary
Gender;
34 title 'Employee
database';
35
run;



WARNING: No output destinations
active.
NOTE: The PROCEDURE PRINT used 0.00 CPU seconds and
10275K.


NOTE: The address space has used a maximum of 3676K below
the line and
15196K above the
line.




36

37 /*ODS-html
closing*/
38 ods html
close;
39 ods
listing;


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More OS390 Interview Questions

Dear Lister, Environment: OS390 2.10 IBM 9672- G5 (R16) I have question regarding the Real Storage usage. By monitor through RMF III the usage of Real Storage keep in increasing everyday. Why this happen? Any comment and suggestion.

1 Answers  


What is afoper?

0 Answers  


what is meant by online job and batch job?

4 Answers   TCS,


What is the need of base registers in IBM 360/370?

0 Answers  


what is active directory How to install active directory 2003?

1 Answers  






without jcl how to run the batch programs

0 Answers   IBM,


In real storage usage. By monitor through rmf iii the usage of real storage keep in increasing everyday. Why this happen?

0 Answers  


Hi All, Any idea about AFOper? What i know is that, its an third party monitoring tool for Started Tasks. Any more info..plz update me. Thanks

1 Answers   ACS,


Hi, While I am trying to produce a html report from SAS interactive screen, I am always getting an error. I have attached the result of interactive execution with this. Please help me on this. NOTE: All profile changes will be lost at the end of the session. 1 *libname ia 'U19K.CAPS.SAS'; 2 3 /*Data declaration*/ 4 data work.staff; 5 infile 'U19K.CAPS.SAS (RAWDATA1)'; 6 input LastName $ 1-10 FirstName $ 11- 20 7 JobTitle $ 21-23 Salary 24- 28 8 BirthDat $ 29-37 Gender $ 38 9 run; 10 11 /*Basic "format" statement*/ 12 /*assign range of values to a variable and use it*/ 13 /*'$' should be used for a alphanumeric manipulation*/ NOTE: The infile 'U19K.CAPS.SAS(RAWDATA1)' is: Dsname=U19K.CAPS.SAS (RAWDATA1), Unit=3390,Volume=XTD007,Disp=SHR,Blksize=6160, Lrecl=80,Recfm=FB NOTE: 20 records were read from the infile 'U19K.CAPS.SAS (RAWDATA1)'. NOTE: The data set WORK.STAFF has 20 observations and 7 variables. NOTE: The DATA statement used 0.01 CPU seconds and 7537K. NOTE: The address space has used a maximum of 3676K below the line and 15196K above the line. 14 proc format; 15 value Salrange low- 10000='Below' 16 10001- 20000='Medium' 17 20001- High='Above'; NOTE: Format SALRANGE has been output. 18 value $Gender F='Female' 19 M='Male'; NOTE: Format ÅGENDER has been output. 20 run; NOTE: The PROCEDURE FORMAT used 0.00 CPU seconds and 7523K. NOTE: The address space has used a maximum of 3676K below the line and 15196K above the line. 21 22 /*ODS-Output delivery system to create html file*/ 23 ods listing close; 24 ods html file='C:\Documents and Settings\u19k\Desktop\html1.html'; NOTE: Writing HTML Body file: C:\Documents and Settings\u19k\Desktop\html1.html ERROR: Invalid file, C:\DOCUMENTS AND SETTINGS\U19K\DESKTOP\HTML1.HTML. WARNING: No body file. HTML output will not be created. 25 26 /*Basic "label" statement*/ 27 proc print data=work.staff split=''; 28 label LastName='Last Name' 29 FirstName='First Name' 30 JobTitle='Job Title' 31 Salary='Annual Salary'; 32 format Salary Salrange. Gender $Gender.; 33 var LastName FirstName JobTitle Salary Gender; 34 title 'Employee database'; 35 run; WARNING: No output destinations active. NOTE: The PROCEDURE PRINT used 0.00 CPU seconds and 10275K. NOTE: The address space has used a maximum of 3676K below the line and 15196K above the line. 36 37 /*ODS-html closing*/ 38 ods html close; 39 ods listing;

0 Answers  


what are the secirity tools in mainframe? and let me know about the other tools and the uses of thst immediatly................

0 Answers   IBM,


Categories