SlideShare a Scribd company logo
REPORT PROCEDURE
Presented by
Maanasa Surampally
OVERVIEW
 Purpose
 Common Features with others
 Syntax
 Types of Reports
 Column statement
 Define statement & its options
 Text Wrapping
 Break and rbreak statements
 Compute Block
 ODS
PURPOSE
 Control the appearance of every column
 Summary reports
 Detail listings
 Multiple-panel reports
 Text wrapping within a column
SHARES FEATURES WITH
 Proc print : Customizes the output
 Proc means : Produce Statistics
 Proc tabulate : Create Summary table
 Proc sort : Sort the observations
 Data step : Create new variable
SYNTAX
proc report data=libref.dataset-name;
run;
 The Report is always generated in separate
interactive window namely Proc REPORT.
 The generate the report in Output window we use
special keywords namely
nowd or nowindows - Windows OS
proc print data=sashelp.class;
run;
proc print data=sashelp.class nowd;
run;
proc print data = sashelp.class nowd;
define sex / width = 3;
run;
TYPES OF REPORTS
 Proc report produces
Detailed reports - Character variables
Summary reports - Numeric variables
 For numeric variables,
default usage – ANALYSIS
default statistic – SUM
title 'Column statement';
proc report data = sashelp.class nowd;
column name height;
run;
title ‘Column statement for Summary report';
proc report data = sashelp.class nowd;
column age height weight;
run;
RENAMING THE VARIABLE
title 'Display usage';
proc report data = sashelp.class nowd;
column age height sex weight;
define height / display width = 6;
define age /display width= 5;
define sex /display "gender" width = 6;
run;
GROUP OPTION
title 'Demonstrating GROUP usage';
proc report data = sashelp.class nowd;
column sex height weight;
define sex / group width =11;
define height /analysis mean "Average height" width=12 ;
define weight /analysis mean "Average weight" width=12;
run;
*Creating new variable Comment and adding observations to it using else if conditions;
data class1;
set sashelp.class;
if age=11 then Comment='need two more years to reach 13 and three more years to reach 14';
else if age=12 then Comment='need two more years to reach 14 and three more years to reach 15';
else if age=13 then Comment='need two more years to reach 15 and three more years to reach 16';
else if age=14 then Comment='need two more years to reach 16';
else if age=15 then Comment='need one more year to reach 16';
else if age=16 then Comment='the oldest candidate among all of them';
run;
title 'Creating new variable Comment and adding observations to it using else if conditions';
proc print data=class1;
run;
TEXT WRAPPING
title 'Flow option for text wrapping';
proc report data=class1 nowd headline split=' ' ls=100;
column name age sex height weight comment;
define name / "Candidate name" width=10;
define age / width=3;
define sex / "Gender" width=6;
define height / "Candidate height" width=10;
define weight / "Candidate weight" width=10;
define comment / width=30 flow;
run;
MULTIPLE GROUP USAGE
title 'Demonstrating MULTIPLE GROUP usage';
proc report data = class1 nowd headline;
column sex age comment weight;
define sex / group width=11;
define age / group width=8;
define comment / width=40 flow;
define weight / analysis mean "Average weight" width=12 ;
run;
SORTING & JUSTIFICATION
title 'Sorting using Order in Proc report';
proc report data=class1 nowd;
column age name sex;
define age/order "candidate age" width=20 right;
define name/ "candidate name" width=14 left;
define sex/ "Gender" width=6 center;
run;
MULTIPLE ORDER
title 'Multiple order usage' ;
proc report data=class1 nowd;
column name age weight;
define name/ "candidate name" width=14;
define age/ order "candidate age" width=20;
define weight/ descending order width=6 format=6.;
run;
PANELS
proc report data=examresult nowd headline panels=18 ps=16;
columns Rollno Grade;
define Rollno / width = 6;
define Grade / width = 5 center;
run;
PRODUCING REPORT BREAKS
 The proc report produces totals and sub-totals using
 BREAK
 RBREAK
 Following the keyword, location is given either AFTER or
BEFORE.
 Options
 OL
 UL
 DOL
 DUL
 Word SUMMARIZE is used for analysis of the statistic in
define statement.
SUPPRESS OPTION
title "Demonstrating BREAK usage";
proc report data=sashelp.class nowd headline;
columns name height age weight;
define age/ display order width=8;
define name / display width=8;
define height / display width=7;
define weight / sum width=7;
break after age / ol dul summarize;
run;
BREAK STATEMENT
title "Demonstrating BREAK usage";
proc report data = sashelp.class nowd headline;
columns age name height weight;
define age / display order width=8;
define name / display width=8;
define height/ display width=7;
define weight / sum width=7;
break after age/ ol dul summarize suppress;
run;
RBREAK
title "Producing report breaks using RBREAK";
proc report data=sashelp.class nowd headline;
columns name height weight;
define name /display width=8;
define height/display width=7;
define weight/ display "Balance" width=7 format=dollar5.;
rbreak after / ol ul summarize;
run;
COMPUTE BLOCK
 To create a Compute block, COMPUTE and ENDCOMP
statements are used.
 A programming logic is included in the computing block.
 Prior to compute block, the keyword Computed must be
used in the define statement based on which variable we
create a new variable.
 Example: compute new-variable;
new-variable=formula with old-variable;
endcomp;
COMPUTING A NEW VARIABLE
title "Computing a new Variable";
proc report data=sashelp.class nowd;
column name weight wtkg;
define name/display "Candidate name" width=12;
define weight/display "Weight in pounds" width=12;
define Wtkg/computed "Weight in kg" width=10 format=6.1;
compute Wtkg;
Wtkg=weight/2.2;
endcomp;
run;
NOPRINT
title "Computing a new Variable";
proc report data=sashelp.class nowd headskip;
column name weight wtkg;
define name/display "Candidate name" width=12;
define weight/display "Weight in pounds" noprint width=12;
define Wtkg/computed "Weight in kg" width=10 format=6.1;
compute Wtkg;
Wtkg=weight/2.2;
endcomp;
run;
COMPUTE BLOCK FOR CHARCTER VARIABLE
title "Creating a Character variable in a Compute block";
proc report data=sashelp.class nowd;
columns name height height_status;
define name/ display "Candidate name" width=6;
define height/display width=6;
define height_status/ computed "height_status" width=18;
compute height_status/ character length=14;
if height le 59 then height_status='short';
else if height gt 64 then height_status='tall';
else if height then height_status='Medium';
endcomp;
run;
VIEWTABLE: Sashelp.Prdsale
ACROSS
title 'Summary Report';
proc report data=sashelp.prdsale nowd;
column country product region,('Sales' predict actual);
define country /group;
define product /group;
define region /across ;
define predict / sum 'Predicted';
define actual /sum 'Actual';
rbreak after / summarize;
run;
OUTPUT DELIVERY SYSTEM
title 'Proc Report using ODS';
ods pdf style = default
body = 'sashelp.prdsale1.pdf';
proc report data=sashelp.prdsale nowd headline ;
column region country product,actual totalsales;
define region / group;
define country / group;
define product / across "-Product-";
define actual / analysis sum format = dollar8. 'Sales';
define totalsales / computed format = dollar10.'Total Sales';
break after region /ol ul summarize suppress;
rbreak after / dul summarize;
compute totalsales;
totalsales = sum(_c3_,_c4_,_c5_,_c6_);
endcomp;
run;
ods pdf close;
Default style in ODS :
Brick Style in ODS :
TRAFFIC-SIGNALLING IN ODS USING PROC REPORT
USE OF GRAPHICS
ADDING A GRAPHIC IMAGE USING ODS
ANY QUERIES?
THANK YOU…

More Related Content

What's hot

Sas cheat
Sas cheatSas cheat
Sas cheat
imaduddin91
 
Understanding SAS Data Step Processing
Understanding SAS Data Step ProcessingUnderstanding SAS Data Step Processing
Understanding SAS Data Step Processing
guest2160992
 
Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3
Mark Tabladillo
 
SAS Macros part 2
SAS Macros part 2SAS Macros part 2
SAS Macros part 2
venkatam
 
SAS Macros part 1
SAS Macros part 1SAS Macros part 1
SAS Macros part 1
venkatam
 
SAS Proc SQL
SAS Proc SQLSAS Proc SQL
SAS Proc SQL
guest2160992
 
SAS Functions
SAS FunctionsSAS Functions
SAS Functions
guest2160992
 
Data Match Merging in SAS
Data Match Merging in SASData Match Merging in SAS
Data Match Merging in SAS
guest2160992
 
Where Vs If Statement
Where Vs If StatementWhere Vs If Statement
Where Vs If Statement
Sunil Gupta
 
Understanding sas data step processing.
Understanding sas data step processing.Understanding sas data step processing.
Understanding sas data step processing.
Ravi Mandal, MBA
 
Base sas interview questions
Base sas interview questionsBase sas interview questions
Base sas interview questions
Dr P Deepak
 
Sql
SqlSql
SAS Macro
SAS MacroSAS Macro
SAS Macro
Sonal Shrivastav
 
Sql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.pptSql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.ppt
DrRShaliniVISTAS
 
View & index in SQL
View & index in SQLView & index in SQL
View & index in SQL
Swapnali Pawar
 
SQL Functions and Operators
SQL Functions and OperatorsSQL Functions and Operators
SQL Functions and Operators
Mohan Kumar.R
 
Restricting and sorting data
Restricting and sorting dataRestricting and sorting data
Restricting and sorting data
Syed Zaid Irshad
 
ABAP Event-driven Programming &Selection Screen
ABAP Event-driven Programming &Selection ScreenABAP Event-driven Programming &Selection Screen
ABAP Event-driven Programming &Selection Screen
sapdocs. info
 
Sql
SqlSql
Advanced Sql Training
Advanced Sql TrainingAdvanced Sql Training
Advanced Sql Training
bixxman
 

What's hot (20)

Sas cheat
Sas cheatSas cheat
Sas cheat
 
Understanding SAS Data Step Processing
Understanding SAS Data Step ProcessingUnderstanding SAS Data Step Processing
Understanding SAS Data Step Processing
 
Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3
 
SAS Macros part 2
SAS Macros part 2SAS Macros part 2
SAS Macros part 2
 
SAS Macros part 1
SAS Macros part 1SAS Macros part 1
SAS Macros part 1
 
SAS Proc SQL
SAS Proc SQLSAS Proc SQL
SAS Proc SQL
 
SAS Functions
SAS FunctionsSAS Functions
SAS Functions
 
Data Match Merging in SAS
Data Match Merging in SASData Match Merging in SAS
Data Match Merging in SAS
 
Where Vs If Statement
Where Vs If StatementWhere Vs If Statement
Where Vs If Statement
 
Understanding sas data step processing.
Understanding sas data step processing.Understanding sas data step processing.
Understanding sas data step processing.
 
Base sas interview questions
Base sas interview questionsBase sas interview questions
Base sas interview questions
 
Sql
SqlSql
Sql
 
SAS Macro
SAS MacroSAS Macro
SAS Macro
 
Sql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.pptSql Commands_Dr.R.Shalini.ppt
Sql Commands_Dr.R.Shalini.ppt
 
View & index in SQL
View & index in SQLView & index in SQL
View & index in SQL
 
SQL Functions and Operators
SQL Functions and OperatorsSQL Functions and Operators
SQL Functions and Operators
 
Restricting and sorting data
Restricting and sorting dataRestricting and sorting data
Restricting and sorting data
 
ABAP Event-driven Programming &Selection Screen
ABAP Event-driven Programming &Selection ScreenABAP Event-driven Programming &Selection Screen
ABAP Event-driven Programming &Selection Screen
 
Sql
SqlSql
Sql
 
Advanced Sql Training
Advanced Sql TrainingAdvanced Sql Training
Advanced Sql Training
 

Similar to Report procedure

Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 Solution
Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 SolutionLearning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 Solution
Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 Solution
Vibeesh CS
 
SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20
SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20
SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20
Ayapparaj SKS
 
Sas classes in mumbai
Sas classes in mumbaiSas classes in mumbai
Sas classes in mumbai
Vibrant Technologies & Computers
 
Dynamic websites lec3
Dynamic websites lec3Dynamic websites lec3
Dynamic websites lec3
Belal Arfa
 
PLSQL
PLSQLPLSQL
Basics Of SAS Programming Language
Basics Of SAS Programming LanguageBasics Of SAS Programming Language
Basics Of SAS Programming Language
guest2160992
 
Java Basics.pdf
Java Basics.pdfJava Basics.pdf
Java Basics.pdf
EdFeranil
 
PL SQL.pptx in computer language in database
PL SQL.pptx in computer language in databasePL SQL.pptx in computer language in database
PL SQL.pptx in computer language in database
ironman82715
 
Local SQLite Database with Node for beginners
Local SQLite Database with Node for beginnersLocal SQLite Database with Node for beginners
Local SQLite Database with Node for beginners
Laurence Svekis ✔
 
4. plsql 1
4. plsql 14. plsql 1
4. plsql 1
vinaya2306
 
SAS Internal Training
SAS Internal TrainingSAS Internal Training
SAS Internal Training
Amrih Muktiaji
 
9-java language basics part3
9-java language basics part39-java language basics part3
9-java language basics part3
Amr Elghadban (AmrAngry)
 
Reason - introduction to language and its ecosystem | Łukasz Strączyński
Reason - introduction to language and its ecosystem | Łukasz StrączyńskiReason - introduction to language and its ecosystem | Łukasz Strączyński
Reason - introduction to language and its ecosystem | Łukasz Strączyński
Grand Parade Poland
 
Sas ods
Sas odsSas ods
VIT351 Software Development VI Unit4
VIT351 Software Development VI Unit4VIT351 Software Development VI Unit4
VIT351 Software Development VI Unit4
YOGESH SINGH
 
AdvancedRTFTemplates.ppt
AdvancedRTFTemplates.pptAdvancedRTFTemplates.ppt
AdvancedRTFTemplates.ppt
pibepobre1
 
Plsql
PlsqlPlsql
SQL- Introduction to PL/SQL
SQL- Introduction to  PL/SQLSQL- Introduction to  PL/SQL
SQL- Introduction to PL/SQL
Vibrant Technologies & Computers
 
PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts
Bharat Kalia
 
pm1
pm1pm1

Similar to Report procedure (20)

Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 Solution
Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 SolutionLearning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 Solution
Learning SAS With Example by Ron Cody :Chapter 16 to Chapter 20 Solution
 
SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20
SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20
SAS Ron Cody Solutions for even Number problems from Chapter 16 to 20
 
Sas classes in mumbai
Sas classes in mumbaiSas classes in mumbai
Sas classes in mumbai
 
Dynamic websites lec3
Dynamic websites lec3Dynamic websites lec3
Dynamic websites lec3
 
PLSQL
PLSQLPLSQL
PLSQL
 
Basics Of SAS Programming Language
Basics Of SAS Programming LanguageBasics Of SAS Programming Language
Basics Of SAS Programming Language
 
Java Basics.pdf
Java Basics.pdfJava Basics.pdf
Java Basics.pdf
 
PL SQL.pptx in computer language in database
PL SQL.pptx in computer language in databasePL SQL.pptx in computer language in database
PL SQL.pptx in computer language in database
 
Local SQLite Database with Node for beginners
Local SQLite Database with Node for beginnersLocal SQLite Database with Node for beginners
Local SQLite Database with Node for beginners
 
4. plsql 1
4. plsql 14. plsql 1
4. plsql 1
 
SAS Internal Training
SAS Internal TrainingSAS Internal Training
SAS Internal Training
 
9-java language basics part3
9-java language basics part39-java language basics part3
9-java language basics part3
 
Reason - introduction to language and its ecosystem | Łukasz Strączyński
Reason - introduction to language and its ecosystem | Łukasz StrączyńskiReason - introduction to language and its ecosystem | Łukasz Strączyński
Reason - introduction to language and its ecosystem | Łukasz Strączyński
 
Sas ods
Sas odsSas ods
Sas ods
 
VIT351 Software Development VI Unit4
VIT351 Software Development VI Unit4VIT351 Software Development VI Unit4
VIT351 Software Development VI Unit4
 
AdvancedRTFTemplates.ppt
AdvancedRTFTemplates.pptAdvancedRTFTemplates.ppt
AdvancedRTFTemplates.ppt
 
Plsql
PlsqlPlsql
Plsql
 
SQL- Introduction to PL/SQL
SQL- Introduction to  PL/SQLSQL- Introduction to  PL/SQL
SQL- Introduction to PL/SQL
 
PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts
 
pm1
pm1pm1
pm1
 

Recently uploaded

Dr. Sherman Lai, MD — Guelph's Dedicated Medical Professional
Dr. Sherman Lai, MD — Guelph's Dedicated Medical ProfessionalDr. Sherman Lai, MD — Guelph's Dedicated Medical Professional
Dr. Sherman Lai, MD — Guelph's Dedicated Medical Professional
Sherman Lai Guelph
 
ASSESSMENT OF THE EYE (2)-Health Assessment.pptx
ASSESSMENT OF THE EYE (2)-Health Assessment.pptxASSESSMENT OF THE EYE (2)-Health Assessment.pptx
ASSESSMENT OF THE EYE (2)-Health Assessment.pptx
Rommel Luis III Israel
 
ASSESSMENT OF THE SKIN, HAIR, AND NAILS.pptx
ASSESSMENT OF THE SKIN, HAIR, AND NAILS.pptxASSESSMENT OF THE SKIN, HAIR, AND NAILS.pptx
ASSESSMENT OF THE SKIN, HAIR, AND NAILS.pptx
Rommel Luis III Israel
 
𝔹hopal Call Girls 7023059433 High Profile Independent Escorts 𝔹hopal
𝔹hopal Call Girls 7023059433 High Profile Independent Escorts 𝔹hopal𝔹hopal Call Girls 7023059433 High Profile Independent Escorts 𝔹hopal
𝔹hopal Call Girls 7023059433 High Profile Independent Escorts 𝔹hopal
garge6804
 
Hyderabad Call Girls 7023059433 High Profile Escorts Service Hyderabad
Hyderabad Call Girls 7023059433 High Profile Escorts Service HyderabadHyderabad Call Girls 7023059433 High Profile Escorts Service Hyderabad
Hyderabad Call Girls 7023059433 High Profile Escorts Service Hyderabad
garge6804
 
1比1制作(uofm毕业证书)美国密歇根大学毕业证学位证书原版一模一样
1比1制作(uofm毕业证书)美国密歇根大学毕业证学位证书原版一模一样1比1制作(uofm毕业证书)美国密歇根大学毕业证学位证书原版一模一样
1比1制作(uofm毕业证书)美国密歇根大学毕业证学位证书原版一模一样
5sj7jxf7
 
Know Latest Hiranandani Hospital Powai News.pdf
Know Latest Hiranandani Hospital Powai News.pdfKnow Latest Hiranandani Hospital Powai News.pdf
Know Latest Hiranandani Hospital Powai News.pdf
Dr. Sujit Chatterjee CEO Hiranandani Hospital
 
Cyclothymia Test: Diagnosing, Symptoms, Treatment, and Impact | The Lifescien...
Cyclothymia Test: Diagnosing, Symptoms, Treatment, and Impact | The Lifescien...Cyclothymia Test: Diagnosing, Symptoms, Treatment, and Impact | The Lifescien...
Cyclothymia Test: Diagnosing, Symptoms, Treatment, and Impact | The Lifescien...
The Lifesciences Magazine
 
The Ultimate Guide in Setting Up Market Research System in Health-Tech
The Ultimate Guide in Setting Up Market Research System in Health-TechThe Ultimate Guide in Setting Up Market Research System in Health-Tech
The Ultimate Guide in Setting Up Market Research System in Health-Tech
Gokul Rangarajan
 
HEALTH ASSESSMENT IN NURSING USING THE NURSING PROCESSpptx
HEALTH ASSESSMENT IN NURSING USING THE NURSING PROCESSpptxHEALTH ASSESSMENT IN NURSING USING THE NURSING PROCESSpptx
HEALTH ASSESSMENT IN NURSING USING THE NURSING PROCESSpptx
Rommel Luis III Israel
 
Research, Monitoring and Evaluation, in Public Health
Research, Monitoring and Evaluation, in Public HealthResearch, Monitoring and Evaluation, in Public Health
Research, Monitoring and Evaluation, in Public Health
aghedogodday
 
Discover the Perfect Way to Relax - Malayali Kerala Spa Ajman
Discover the Perfect Way to Relax - Malayali Kerala Spa AjmanDiscover the Perfect Way to Relax - Malayali Kerala Spa Ajman
Discover the Perfect Way to Relax - Malayali Kerala Spa Ajman
Malayali Kerala Spa Ajman
 
Psychological Safety as a Foundation for Improvement 12-06-24.pdf
Psychological Safety as a Foundation for Improvement 12-06-24.pdfPsychological Safety as a Foundation for Improvement 12-06-24.pdf
Psychological Safety as a Foundation for Improvement 12-06-24.pdf
Healthcare Improvement Support
 
English Drug and Alcohol Commissioners June 2024.pptx
English Drug and Alcohol Commissioners June 2024.pptxEnglish Drug and Alcohol Commissioners June 2024.pptx
English Drug and Alcohol Commissioners June 2024.pptx
MatSouthwell1
 
一比一原版(UoA毕业证)昆士兰科技大学毕业证如何办理
一比一原版(UoA毕业证)昆士兰科技大学毕业证如何办理一比一原版(UoA毕业证)昆士兰科技大学毕业证如何办理
一比一原版(UoA毕业证)昆士兰科技大学毕业证如何办理
xkute
 
PPT on Embryological and fetal development
PPT on Embryological and fetal developmentPPT on Embryological and fetal development
PPT on Embryological and fetal development
smileysharma63
 
Correlation between surface motion and heart-breast distance for breast cance...
Correlation between surface motion and heart-breast distance for breast cance...Correlation between surface motion and heart-breast distance for breast cance...
Correlation between surface motion and heart-breast distance for breast cance...
SGRT Community
 
Types of Cancer Treatments | Forms of cancer treatment
Types of Cancer Treatments | Forms of cancer treatmentTypes of Cancer Treatments | Forms of cancer treatment
Types of Cancer Treatments | Forms of cancer treatment
RioGrandeCancerSpeci
 
2024 Media Preferences of Older Adults: Consumer Survey and Marketing Implica...
2024 Media Preferences of Older Adults: Consumer Survey and Marketing Implica...2024 Media Preferences of Older Adults: Consumer Survey and Marketing Implica...
2024 Media Preferences of Older Adults: Consumer Survey and Marketing Implica...
Media Logic
 
nurs fpx 4050 assessment 4 final care coordination plan.pdf
nurs fpx 4050 assessment 4 final care coordination plan.pdfnurs fpx 4050 assessment 4 final care coordination plan.pdf
nurs fpx 4050 assessment 4 final care coordination plan.pdf
Carolyn Harker
 

Recently uploaded (20)

Dr. Sherman Lai, MD — Guelph's Dedicated Medical Professional
Dr. Sherman Lai, MD — Guelph's Dedicated Medical ProfessionalDr. Sherman Lai, MD — Guelph's Dedicated Medical Professional
Dr. Sherman Lai, MD — Guelph's Dedicated Medical Professional
 
ASSESSMENT OF THE EYE (2)-Health Assessment.pptx
ASSESSMENT OF THE EYE (2)-Health Assessment.pptxASSESSMENT OF THE EYE (2)-Health Assessment.pptx
ASSESSMENT OF THE EYE (2)-Health Assessment.pptx
 
ASSESSMENT OF THE SKIN, HAIR, AND NAILS.pptx
ASSESSMENT OF THE SKIN, HAIR, AND NAILS.pptxASSESSMENT OF THE SKIN, HAIR, AND NAILS.pptx
ASSESSMENT OF THE SKIN, HAIR, AND NAILS.pptx
 
𝔹hopal Call Girls 7023059433 High Profile Independent Escorts 𝔹hopal
𝔹hopal Call Girls 7023059433 High Profile Independent Escorts 𝔹hopal𝔹hopal Call Girls 7023059433 High Profile Independent Escorts 𝔹hopal
𝔹hopal Call Girls 7023059433 High Profile Independent Escorts 𝔹hopal
 
Hyderabad Call Girls 7023059433 High Profile Escorts Service Hyderabad
Hyderabad Call Girls 7023059433 High Profile Escorts Service HyderabadHyderabad Call Girls 7023059433 High Profile Escorts Service Hyderabad
Hyderabad Call Girls 7023059433 High Profile Escorts Service Hyderabad
 
1比1制作(uofm毕业证书)美国密歇根大学毕业证学位证书原版一模一样
1比1制作(uofm毕业证书)美国密歇根大学毕业证学位证书原版一模一样1比1制作(uofm毕业证书)美国密歇根大学毕业证学位证书原版一模一样
1比1制作(uofm毕业证书)美国密歇根大学毕业证学位证书原版一模一样
 
Know Latest Hiranandani Hospital Powai News.pdf
Know Latest Hiranandani Hospital Powai News.pdfKnow Latest Hiranandani Hospital Powai News.pdf
Know Latest Hiranandani Hospital Powai News.pdf
 
Cyclothymia Test: Diagnosing, Symptoms, Treatment, and Impact | The Lifescien...
Cyclothymia Test: Diagnosing, Symptoms, Treatment, and Impact | The Lifescien...Cyclothymia Test: Diagnosing, Symptoms, Treatment, and Impact | The Lifescien...
Cyclothymia Test: Diagnosing, Symptoms, Treatment, and Impact | The Lifescien...
 
The Ultimate Guide in Setting Up Market Research System in Health-Tech
The Ultimate Guide in Setting Up Market Research System in Health-TechThe Ultimate Guide in Setting Up Market Research System in Health-Tech
The Ultimate Guide in Setting Up Market Research System in Health-Tech
 
HEALTH ASSESSMENT IN NURSING USING THE NURSING PROCESSpptx
HEALTH ASSESSMENT IN NURSING USING THE NURSING PROCESSpptxHEALTH ASSESSMENT IN NURSING USING THE NURSING PROCESSpptx
HEALTH ASSESSMENT IN NURSING USING THE NURSING PROCESSpptx
 
Research, Monitoring and Evaluation, in Public Health
Research, Monitoring and Evaluation, in Public HealthResearch, Monitoring and Evaluation, in Public Health
Research, Monitoring and Evaluation, in Public Health
 
Discover the Perfect Way to Relax - Malayali Kerala Spa Ajman
Discover the Perfect Way to Relax - Malayali Kerala Spa AjmanDiscover the Perfect Way to Relax - Malayali Kerala Spa Ajman
Discover the Perfect Way to Relax - Malayali Kerala Spa Ajman
 
Psychological Safety as a Foundation for Improvement 12-06-24.pdf
Psychological Safety as a Foundation for Improvement 12-06-24.pdfPsychological Safety as a Foundation for Improvement 12-06-24.pdf
Psychological Safety as a Foundation for Improvement 12-06-24.pdf
 
English Drug and Alcohol Commissioners June 2024.pptx
English Drug and Alcohol Commissioners June 2024.pptxEnglish Drug and Alcohol Commissioners June 2024.pptx
English Drug and Alcohol Commissioners June 2024.pptx
 
一比一原版(UoA毕业证)昆士兰科技大学毕业证如何办理
一比一原版(UoA毕业证)昆士兰科技大学毕业证如何办理一比一原版(UoA毕业证)昆士兰科技大学毕业证如何办理
一比一原版(UoA毕业证)昆士兰科技大学毕业证如何办理
 
PPT on Embryological and fetal development
PPT on Embryological and fetal developmentPPT on Embryological and fetal development
PPT on Embryological and fetal development
 
Correlation between surface motion and heart-breast distance for breast cance...
Correlation between surface motion and heart-breast distance for breast cance...Correlation between surface motion and heart-breast distance for breast cance...
Correlation between surface motion and heart-breast distance for breast cance...
 
Types of Cancer Treatments | Forms of cancer treatment
Types of Cancer Treatments | Forms of cancer treatmentTypes of Cancer Treatments | Forms of cancer treatment
Types of Cancer Treatments | Forms of cancer treatment
 
2024 Media Preferences of Older Adults: Consumer Survey and Marketing Implica...
2024 Media Preferences of Older Adults: Consumer Survey and Marketing Implica...2024 Media Preferences of Older Adults: Consumer Survey and Marketing Implica...
2024 Media Preferences of Older Adults: Consumer Survey and Marketing Implica...
 
nurs fpx 4050 assessment 4 final care coordination plan.pdf
nurs fpx 4050 assessment 4 final care coordination plan.pdfnurs fpx 4050 assessment 4 final care coordination plan.pdf
nurs fpx 4050 assessment 4 final care coordination plan.pdf
 

Report procedure

  • 2. OVERVIEW  Purpose  Common Features with others  Syntax  Types of Reports  Column statement  Define statement & its options  Text Wrapping  Break and rbreak statements  Compute Block  ODS
  • 3. PURPOSE  Control the appearance of every column  Summary reports  Detail listings  Multiple-panel reports  Text wrapping within a column
  • 4. SHARES FEATURES WITH  Proc print : Customizes the output  Proc means : Produce Statistics  Proc tabulate : Create Summary table  Proc sort : Sort the observations  Data step : Create new variable
  • 5. SYNTAX proc report data=libref.dataset-name; run;  The Report is always generated in separate interactive window namely Proc REPORT.  The generate the report in Output window we use special keywords namely nowd or nowindows - Windows OS
  • 8. proc print data = sashelp.class nowd; define sex / width = 3; run;
  • 9. TYPES OF REPORTS  Proc report produces Detailed reports - Character variables Summary reports - Numeric variables  For numeric variables, default usage – ANALYSIS default statistic – SUM
  • 10. title 'Column statement'; proc report data = sashelp.class nowd; column name height; run;
  • 11. title ‘Column statement for Summary report'; proc report data = sashelp.class nowd; column age height weight; run;
  • 12. RENAMING THE VARIABLE title 'Display usage'; proc report data = sashelp.class nowd; column age height sex weight; define height / display width = 6; define age /display width= 5; define sex /display "gender" width = 6; run;
  • 13.
  • 14. GROUP OPTION title 'Demonstrating GROUP usage'; proc report data = sashelp.class nowd; column sex height weight; define sex / group width =11; define height /analysis mean "Average height" width=12 ; define weight /analysis mean "Average weight" width=12; run;
  • 15.
  • 16. *Creating new variable Comment and adding observations to it using else if conditions; data class1; set sashelp.class; if age=11 then Comment='need two more years to reach 13 and three more years to reach 14'; else if age=12 then Comment='need two more years to reach 14 and three more years to reach 15'; else if age=13 then Comment='need two more years to reach 15 and three more years to reach 16'; else if age=14 then Comment='need two more years to reach 16'; else if age=15 then Comment='need one more year to reach 16'; else if age=16 then Comment='the oldest candidate among all of them'; run; title 'Creating new variable Comment and adding observations to it using else if conditions'; proc print data=class1; run;
  • 17.
  • 18. TEXT WRAPPING title 'Flow option for text wrapping'; proc report data=class1 nowd headline split=' ' ls=100; column name age sex height weight comment; define name / "Candidate name" width=10; define age / width=3; define sex / "Gender" width=6; define height / "Candidate height" width=10; define weight / "Candidate weight" width=10; define comment / width=30 flow; run;
  • 19.
  • 20. MULTIPLE GROUP USAGE title 'Demonstrating MULTIPLE GROUP usage'; proc report data = class1 nowd headline; column sex age comment weight; define sex / group width=11; define age / group width=8; define comment / width=40 flow; define weight / analysis mean "Average weight" width=12 ; run;
  • 21.
  • 22. SORTING & JUSTIFICATION title 'Sorting using Order in Proc report'; proc report data=class1 nowd; column age name sex; define age/order "candidate age" width=20 right; define name/ "candidate name" width=14 left; define sex/ "Gender" width=6 center; run;
  • 23.
  • 24. MULTIPLE ORDER title 'Multiple order usage' ; proc report data=class1 nowd; column name age weight; define name/ "candidate name" width=14; define age/ order "candidate age" width=20; define weight/ descending order width=6 format=6.; run;
  • 25.
  • 26. PANELS proc report data=examresult nowd headline panels=18 ps=16; columns Rollno Grade; define Rollno / width = 6; define Grade / width = 5 center; run;
  • 27.
  • 28. PRODUCING REPORT BREAKS  The proc report produces totals and sub-totals using  BREAK  RBREAK  Following the keyword, location is given either AFTER or BEFORE.  Options  OL  UL  DOL  DUL  Word SUMMARIZE is used for analysis of the statistic in define statement.
  • 29. SUPPRESS OPTION title "Demonstrating BREAK usage"; proc report data=sashelp.class nowd headline; columns name height age weight; define age/ display order width=8; define name / display width=8; define height / display width=7; define weight / sum width=7; break after age / ol dul summarize; run;
  • 30.
  • 31. BREAK STATEMENT title "Demonstrating BREAK usage"; proc report data = sashelp.class nowd headline; columns age name height weight; define age / display order width=8; define name / display width=8; define height/ display width=7; define weight / sum width=7; break after age/ ol dul summarize suppress; run;
  • 32.
  • 33. RBREAK title "Producing report breaks using RBREAK"; proc report data=sashelp.class nowd headline; columns name height weight; define name /display width=8; define height/display width=7; define weight/ display "Balance" width=7 format=dollar5.; rbreak after / ol ul summarize; run;
  • 34.
  • 35. COMPUTE BLOCK  To create a Compute block, COMPUTE and ENDCOMP statements are used.  A programming logic is included in the computing block.  Prior to compute block, the keyword Computed must be used in the define statement based on which variable we create a new variable.  Example: compute new-variable; new-variable=formula with old-variable; endcomp;
  • 36. COMPUTING A NEW VARIABLE title "Computing a new Variable"; proc report data=sashelp.class nowd; column name weight wtkg; define name/display "Candidate name" width=12; define weight/display "Weight in pounds" width=12; define Wtkg/computed "Weight in kg" width=10 format=6.1; compute Wtkg; Wtkg=weight/2.2; endcomp; run;
  • 37.
  • 38. NOPRINT title "Computing a new Variable"; proc report data=sashelp.class nowd headskip; column name weight wtkg; define name/display "Candidate name" width=12; define weight/display "Weight in pounds" noprint width=12; define Wtkg/computed "Weight in kg" width=10 format=6.1; compute Wtkg; Wtkg=weight/2.2; endcomp; run;
  • 39.
  • 40. COMPUTE BLOCK FOR CHARCTER VARIABLE title "Creating a Character variable in a Compute block"; proc report data=sashelp.class nowd; columns name height height_status; define name/ display "Candidate name" width=6; define height/display width=6; define height_status/ computed "height_status" width=18; compute height_status/ character length=14; if height le 59 then height_status='short'; else if height gt 64 then height_status='tall'; else if height then height_status='Medium'; endcomp; run;
  • 41.
  • 43.
  • 44. ACROSS title 'Summary Report'; proc report data=sashelp.prdsale nowd; column country product region,('Sales' predict actual); define country /group; define product /group; define region /across ; define predict / sum 'Predicted'; define actual /sum 'Actual'; rbreak after / summarize; run;
  • 45.
  • 46. OUTPUT DELIVERY SYSTEM title 'Proc Report using ODS'; ods pdf style = default body = 'sashelp.prdsale1.pdf'; proc report data=sashelp.prdsale nowd headline ; column region country product,actual totalsales; define region / group; define country / group; define product / across "-Product-"; define actual / analysis sum format = dollar8. 'Sales'; define totalsales / computed format = dollar10.'Total Sales'; break after region /ol ul summarize suppress; rbreak after / dul summarize; compute totalsales; totalsales = sum(_c3_,_c4_,_c5_,_c6_); endcomp; run; ods pdf close;
  • 47.
  • 49. Brick Style in ODS :
  • 50. TRAFFIC-SIGNALLING IN ODS USING PROC REPORT
  • 52. ADDING A GRAPHIC IMAGE USING ODS