SlideShare une entreprise Scribd logo
1  sur  53
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…

Contenu connexe

Tendances

Understanding sas data step processing.
Understanding sas data step processing.Understanding sas data step processing.
Understanding sas data step processing.Ravi Mandal, MBA
 
SAS Access / SAS Connect
SAS Access / SAS ConnectSAS Access / SAS Connect
SAS Access / SAS Connectguest2160992
 
Introduction to SAS Data Set Options
Introduction to SAS Data Set OptionsIntroduction to SAS Data Set Options
Introduction to SAS Data Set OptionsMark Tabladillo
 
Base sas interview questions
Base sas interview questionsBase sas interview questions
Base sas interview questionsDr P Deepak
 
Basics Of SAS Programming Language
Basics Of SAS Programming LanguageBasics Of SAS Programming Language
Basics Of SAS Programming Languageguest2160992
 
Understanding SAS Data Step Processing
Understanding SAS Data Step ProcessingUnderstanding SAS Data Step Processing
Understanding SAS Data Step Processingguest2160992
 
SAS cheat sheet
SAS cheat sheetSAS cheat sheet
SAS cheat sheetAli Ajouz
 
Base SAS Statistics Procedures
Base SAS Statistics ProceduresBase SAS Statistics Procedures
Base SAS Statistics Proceduresguest2160992
 
Les01 (retrieving data using the sql select statement)
Les01 (retrieving data using the sql select statement)Les01 (retrieving data using the sql select statement)
Les01 (retrieving data using the sql select statement)Achmad Solichin
 
Les03 (Using Single Row Functions To Customize Output)
Les03 (Using Single Row Functions To Customize Output)Les03 (Using Single Row Functions To Customize Output)
Les03 (Using Single Row Functions To Customize Output)Achmad Solichin
 
Oracle - Program with PL/SQL - Lession 01
Oracle - Program with PL/SQL - Lession 01Oracle - Program with PL/SQL - Lession 01
Oracle - Program with PL/SQL - Lession 01Thuan Nguyen
 
05 Creating Stored Procedures
05 Creating Stored Procedures05 Creating Stored Procedures
05 Creating Stored Proceduresrehaniltifat
 
Packages in PL/SQL
Packages in PL/SQLPackages in PL/SQL
Packages in PL/SQLPooja Dixit
 

Tendances (20)

Understanding sas data step processing.
Understanding sas data step processing.Understanding sas data step processing.
Understanding sas data step processing.
 
Sas practice programs
Sas practice programsSas practice programs
Sas practice programs
 
Sas Plots Graphs
Sas Plots GraphsSas Plots Graphs
Sas Plots Graphs
 
SAS Access / SAS Connect
SAS Access / SAS ConnectSAS Access / SAS Connect
SAS Access / SAS Connect
 
SAS Proc SQL
SAS Proc SQLSAS Proc SQL
SAS Proc SQL
 
Sas cheat
Sas cheatSas cheat
Sas cheat
 
Introduction to SAS Data Set Options
Introduction to SAS Data Set OptionsIntroduction to SAS Data Set Options
Introduction to SAS Data Set Options
 
Base sas interview questions
Base sas interview questionsBase sas interview questions
Base sas interview questions
 
Basics Of SAS Programming Language
Basics Of SAS Programming LanguageBasics Of SAS Programming Language
Basics Of SAS Programming Language
 
Understanding SAS Data Step Processing
Understanding SAS Data Step ProcessingUnderstanding SAS Data Step Processing
Understanding SAS Data Step Processing
 
SAS cheat sheet
SAS cheat sheetSAS cheat sheet
SAS cheat sheet
 
Base SAS Statistics Procedures
Base SAS Statistics ProceduresBase SAS Statistics Procedures
Base SAS Statistics Procedures
 
Les01 (retrieving data using the sql select statement)
Les01 (retrieving data using the sql select statement)Les01 (retrieving data using the sql select statement)
Les01 (retrieving data using the sql select statement)
 
SAS Macro
SAS MacroSAS Macro
SAS Macro
 
Les03 (Using Single Row Functions To Customize Output)
Les03 (Using Single Row Functions To Customize Output)Les03 (Using Single Row Functions To Customize Output)
Les03 (Using Single Row Functions To Customize Output)
 
Arrays in SAS
Arrays in SASArrays in SAS
Arrays in SAS
 
SQL : introduction
SQL : introductionSQL : introduction
SQL : introduction
 
Oracle - Program with PL/SQL - Lession 01
Oracle - Program with PL/SQL - Lession 01Oracle - Program with PL/SQL - Lession 01
Oracle - Program with PL/SQL - Lession 01
 
05 Creating Stored Procedures
05 Creating Stored Procedures05 Creating Stored Procedures
05 Creating Stored Procedures
 
Packages in PL/SQL
Packages in PL/SQLPackages in PL/SQL
Packages in PL/SQL
 

Similaire à 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 SolutionVibeesh 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 20Ayapparaj SKS
 
Dynamic websites lec3
Dynamic websites lec3Dynamic websites lec3
Dynamic websites lec3Belal Arfa
 
Java Basics.pdf
Java Basics.pdfJava Basics.pdf
Java Basics.pdfEdFeranil
 
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 beginnersLaurence Svekis ✔
 
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ńskiGrand Parade Poland
 
VIT351 Software Development VI Unit4
VIT351 Software Development VI Unit4VIT351 Software Development VI Unit4
VIT351 Software Development VI Unit4YOGESH SINGH
 
AdvancedRTFTemplates.ppt
AdvancedRTFTemplates.pptAdvancedRTFTemplates.ppt
AdvancedRTFTemplates.pptpibepobre1
 
PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts Bharat Kalia
 
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowDBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
 
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowDBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
 

Similaire à 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
 
Java Basics.pdf
Java Basics.pdfJava Basics.pdf
Java Basics.pdf
 
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
 
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowDBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
 
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should KnowDBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
 

Dernier

VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near MeVIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Memriyagarg453
 
Call Girl Raipur 📲 9999965857 whatsapp live cam sex service available
Call Girl Raipur 📲 9999965857 whatsapp live cam sex service availableCall Girl Raipur 📲 9999965857 whatsapp live cam sex service available
Call Girl Raipur 📲 9999965857 whatsapp live cam sex service availablegragmanisha42
 
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
Chandigarh Escorts, 😋9988299661 😋50% off at Escort Service in Chandigarh
Chandigarh Escorts, 😋9988299661 😋50% off at Escort Service in ChandigarhChandigarh Escorts, 😋9988299661 😋50% off at Escort Service in Chandigarh
Chandigarh Escorts, 😋9988299661 😋50% off at Escort Service in ChandigarhSheetaleventcompany
 
VIP Call Girl Sector 32 Noida Just Book Me 9711199171
VIP Call Girl Sector 32 Noida Just Book Me 9711199171VIP Call Girl Sector 32 Noida Just Book Me 9711199171
VIP Call Girl Sector 32 Noida Just Book Me 9711199171Call Girls Service Gurgaon
 
Call Girl Amritsar ❤️♀️@ 8725944379 Amritsar Call Girls Near Me ❤️♀️@ Sexy Ca...
Call Girl Amritsar ❤️♀️@ 8725944379 Amritsar Call Girls Near Me ❤️♀️@ Sexy Ca...Call Girl Amritsar ❤️♀️@ 8725944379 Amritsar Call Girls Near Me ❤️♀️@ Sexy Ca...
Call Girl Amritsar ❤️♀️@ 8725944379 Amritsar Call Girls Near Me ❤️♀️@ Sexy Ca...Sheetaleventcompany
 
Call Girls Chandigarh 👙 7001035870 👙 Genuine WhatsApp Number for Real Meet
Call Girls Chandigarh 👙 7001035870 👙 Genuine WhatsApp Number for Real MeetCall Girls Chandigarh 👙 7001035870 👙 Genuine WhatsApp Number for Real Meet
Call Girls Chandigarh 👙 7001035870 👙 Genuine WhatsApp Number for Real Meetpriyashah722354
 
❤️♀️@ Jaipur Call Girls ❤️♀️@ Jaispreet Call Girl Services in Jaipur QRYPCF ...
❤️♀️@ Jaipur Call Girls ❤️♀️@ Jaispreet Call Girl Services in Jaipur QRYPCF  ...❤️♀️@ Jaipur Call Girls ❤️♀️@ Jaispreet Call Girl Services in Jaipur QRYPCF  ...
❤️♀️@ Jaipur Call Girls ❤️♀️@ Jaispreet Call Girl Services in Jaipur QRYPCF ...Gfnyt.com
 
Punjab❤️Call girls in Mohali ☎️7435815124☎️ Call Girl service in Mohali☎️ Moh...
Punjab❤️Call girls in Mohali ☎️7435815124☎️ Call Girl service in Mohali☎️ Moh...Punjab❤️Call girls in Mohali ☎️7435815124☎️ Call Girl service in Mohali☎️ Moh...
Punjab❤️Call girls in Mohali ☎️7435815124☎️ Call Girl service in Mohali☎️ Moh...Sheetaleventcompany
 
VIP Call Girls Noida Jhanvi 9711199171 Best VIP Call Girls Near Me
VIP Call Girls Noida Jhanvi 9711199171 Best VIP Call Girls Near MeVIP Call Girls Noida Jhanvi 9711199171 Best VIP Call Girls Near Me
VIP Call Girls Noida Jhanvi 9711199171 Best VIP Call Girls Near Memriyagarg453
 
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetHubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
❤️♀️@ Jaipur Call Girls ❤️♀️@ Meghna Jaipur Call Girls Number CRTHNR Call G...
❤️♀️@ Jaipur Call Girls ❤️♀️@ Meghna Jaipur Call Girls Number CRTHNR   Call G...❤️♀️@ Jaipur Call Girls ❤️♀️@ Meghna Jaipur Call Girls Number CRTHNR   Call G...
❤️♀️@ Jaipur Call Girls ❤️♀️@ Meghna Jaipur Call Girls Number CRTHNR Call G...Gfnyt.com
 
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...chandigarhentertainm
 
Call Girls Thane Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Thane Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Thane Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Thane Just Call 9907093804 Top Class Call Girl Service AvailableDipal Arora
 
Dehradun Call Girls Service 08854095900 Real Russian Girls Looking Models
Dehradun Call Girls Service 08854095900 Real Russian Girls Looking ModelsDehradun Call Girls Service 08854095900 Real Russian Girls Looking Models
Dehradun Call Girls Service 08854095900 Real Russian Girls Looking Modelsindiancallgirl4rent
 
Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★
Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★
Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★indiancallgirl4rent
 
Vip sexy Call Girls Service In Sector 137,9999965857 Young Female Escorts Ser...
Vip sexy Call Girls Service In Sector 137,9999965857 Young Female Escorts Ser...Vip sexy Call Girls Service In Sector 137,9999965857 Young Female Escorts Ser...
Vip sexy Call Girls Service In Sector 137,9999965857 Young Female Escorts Ser...Call Girls Noida
 
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetraisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetCall Girls Service
 
Call Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service AvailableDipal Arora
 
Chandigarh Call Girls 👙 7001035870 👙 Genuine WhatsApp Number for Real Meet
Chandigarh Call Girls 👙 7001035870 👙 Genuine WhatsApp Number for Real MeetChandigarh Call Girls 👙 7001035870 👙 Genuine WhatsApp Number for Real Meet
Chandigarh Call Girls 👙 7001035870 👙 Genuine WhatsApp Number for Real Meetpriyashah722354
 

Dernier (20)

VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near MeVIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
VIP Call Girls Noida Sia 9711199171 High Class Call Girl Near Me
 
Call Girl Raipur 📲 9999965857 whatsapp live cam sex service available
Call Girl Raipur 📲 9999965857 whatsapp live cam sex service availableCall Girl Raipur 📲 9999965857 whatsapp live cam sex service available
Call Girl Raipur 📲 9999965857 whatsapp live cam sex service available
 
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
ooty Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Chandigarh Escorts, 😋9988299661 😋50% off at Escort Service in Chandigarh
Chandigarh Escorts, 😋9988299661 😋50% off at Escort Service in ChandigarhChandigarh Escorts, 😋9988299661 😋50% off at Escort Service in Chandigarh
Chandigarh Escorts, 😋9988299661 😋50% off at Escort Service in Chandigarh
 
VIP Call Girl Sector 32 Noida Just Book Me 9711199171
VIP Call Girl Sector 32 Noida Just Book Me 9711199171VIP Call Girl Sector 32 Noida Just Book Me 9711199171
VIP Call Girl Sector 32 Noida Just Book Me 9711199171
 
Call Girl Amritsar ❤️♀️@ 8725944379 Amritsar Call Girls Near Me ❤️♀️@ Sexy Ca...
Call Girl Amritsar ❤️♀️@ 8725944379 Amritsar Call Girls Near Me ❤️♀️@ Sexy Ca...Call Girl Amritsar ❤️♀️@ 8725944379 Amritsar Call Girls Near Me ❤️♀️@ Sexy Ca...
Call Girl Amritsar ❤️♀️@ 8725944379 Amritsar Call Girls Near Me ❤️♀️@ Sexy Ca...
 
Call Girls Chandigarh 👙 7001035870 👙 Genuine WhatsApp Number for Real Meet
Call Girls Chandigarh 👙 7001035870 👙 Genuine WhatsApp Number for Real MeetCall Girls Chandigarh 👙 7001035870 👙 Genuine WhatsApp Number for Real Meet
Call Girls Chandigarh 👙 7001035870 👙 Genuine WhatsApp Number for Real Meet
 
❤️♀️@ Jaipur Call Girls ❤️♀️@ Jaispreet Call Girl Services in Jaipur QRYPCF ...
❤️♀️@ Jaipur Call Girls ❤️♀️@ Jaispreet Call Girl Services in Jaipur QRYPCF  ...❤️♀️@ Jaipur Call Girls ❤️♀️@ Jaispreet Call Girl Services in Jaipur QRYPCF  ...
❤️♀️@ Jaipur Call Girls ❤️♀️@ Jaispreet Call Girl Services in Jaipur QRYPCF ...
 
Punjab❤️Call girls in Mohali ☎️7435815124☎️ Call Girl service in Mohali☎️ Moh...
Punjab❤️Call girls in Mohali ☎️7435815124☎️ Call Girl service in Mohali☎️ Moh...Punjab❤️Call girls in Mohali ☎️7435815124☎️ Call Girl service in Mohali☎️ Moh...
Punjab❤️Call girls in Mohali ☎️7435815124☎️ Call Girl service in Mohali☎️ Moh...
 
VIP Call Girls Noida Jhanvi 9711199171 Best VIP Call Girls Near Me
VIP Call Girls Noida Jhanvi 9711199171 Best VIP Call Girls Near MeVIP Call Girls Noida Jhanvi 9711199171 Best VIP Call Girls Near Me
VIP Call Girls Noida Jhanvi 9711199171 Best VIP Call Girls Near Me
 
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real MeetHubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
Hubli Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
❤️♀️@ Jaipur Call Girls ❤️♀️@ Meghna Jaipur Call Girls Number CRTHNR Call G...
❤️♀️@ Jaipur Call Girls ❤️♀️@ Meghna Jaipur Call Girls Number CRTHNR   Call G...❤️♀️@ Jaipur Call Girls ❤️♀️@ Meghna Jaipur Call Girls Number CRTHNR   Call G...
❤️♀️@ Jaipur Call Girls ❤️♀️@ Meghna Jaipur Call Girls Number CRTHNR Call G...
 
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...
❤️Call girls in Jalandhar ☎️9876848877☎️ Call Girl service in Jalandhar☎️ Jal...
 
Call Girls Thane Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Thane Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Thane Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Thane Just Call 9907093804 Top Class Call Girl Service Available
 
Dehradun Call Girls Service 08854095900 Real Russian Girls Looking Models
Dehradun Call Girls Service 08854095900 Real Russian Girls Looking ModelsDehradun Call Girls Service 08854095900 Real Russian Girls Looking Models
Dehradun Call Girls Service 08854095900 Real Russian Girls Looking Models
 
Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★
Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★
Enjoyment ★ 8854095900 Indian Call Girls In Dehradun 🍆🍌 By Dehradun Call Girl ★
 
Vip sexy Call Girls Service In Sector 137,9999965857 Young Female Escorts Ser...
Vip sexy Call Girls Service In Sector 137,9999965857 Young Female Escorts Ser...Vip sexy Call Girls Service In Sector 137,9999965857 Young Female Escorts Ser...
Vip sexy Call Girls Service In Sector 137,9999965857 Young Female Escorts Ser...
 
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meetraisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
raisen Call Girls 👙 6297143586 👙 Genuine WhatsApp Number for Real Meet
 
Call Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Hyderabad Just Call 9907093804 Top Class Call Girl Service Available
 
Chandigarh Call Girls 👙 7001035870 👙 Genuine WhatsApp Number for Real Meet
Chandigarh Call Girls 👙 7001035870 👙 Genuine WhatsApp Number for Real MeetChandigarh Call Girls 👙 7001035870 👙 Genuine WhatsApp Number for Real Meet
Chandigarh Call Girls 👙 7001035870 👙 Genuine WhatsApp Number for Real Meet
 

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