SlideShare ist ein Scribd-Unternehmen logo
1 von 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…

Weitere ähnliche Inhalte

Was ist angesagt?

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.3Mark Tabladillo
 
Utility Procedures in SAS
Utility Procedures in SASUtility Procedures in SAS
Utility Procedures in SASguest2160992
 
Data Match Merging in SAS
Data Match Merging in SASData Match Merging in SAS
Data Match Merging in SASguest2160992
 
Where Vs If Statement
Where Vs If StatementWhere Vs If Statement
Where Vs If StatementSunil Gupta
 
SAS cheat sheet
SAS cheat sheetSAS cheat sheet
SAS cheat sheetAli Ajouz
 
SAS Access / SAS Connect
SAS Access / SAS ConnectSAS Access / SAS Connect
SAS Access / SAS Connectguest2160992
 
Base sas interview questions
Base sas interview questionsBase sas interview questions
Base sas interview questionsDr P Deepak
 
Basic Sql Handouts
Basic Sql HandoutsBasic Sql Handouts
Basic Sql Handoutsjhe04
 
SAS Macros part 2
SAS Macros part 2SAS Macros part 2
SAS Macros part 2venkatam
 
Base SAS Full Sample Paper
Base SAS Full Sample Paper Base SAS Full Sample Paper
Base SAS Full Sample Paper Jimmy Rana
 
SQL Functions and Operators
SQL Functions and OperatorsSQL Functions and Operators
SQL Functions and OperatorsMohan Kumar.R
 
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
 
Packages in PL/SQL
Packages in PL/SQLPackages in PL/SQL
Packages in PL/SQLPooja Dixit
 
introdution to SQL and SQL functions
introdution to SQL and SQL functionsintrodution to SQL and SQL functions
introdution to SQL and SQL functionsfarwa waqar
 

Was ist angesagt? (20)

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
 
Utility Procedures in SAS
Utility Procedures in SASUtility Procedures in SAS
Utility Procedures in SAS
 
SAS Proc SQL
SAS Proc SQLSAS Proc SQL
SAS Proc SQL
 
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
 
SAS cheat sheet
SAS cheat sheetSAS cheat sheet
SAS cheat sheet
 
SQL
SQLSQL
SQL
 
SAS Access / SAS Connect
SAS Access / SAS ConnectSAS Access / SAS Connect
SAS Access / SAS Connect
 
Introduction to-sql
Introduction to-sqlIntroduction to-sql
Introduction to-sql
 
Base sas interview questions
Base sas interview questionsBase sas interview questions
Base sas interview questions
 
Arrays in SAS
Arrays in SASArrays in SAS
Arrays in SAS
 
Sas Plots Graphs
Sas Plots GraphsSas Plots Graphs
Sas Plots Graphs
 
Basic Sql Handouts
Basic Sql HandoutsBasic Sql Handouts
Basic Sql Handouts
 
SAS Macros part 2
SAS Macros part 2SAS Macros part 2
SAS Macros part 2
 
Base SAS Full Sample Paper
Base SAS Full Sample Paper Base SAS Full Sample Paper
Base SAS Full Sample Paper
 
SQL Functions and Operators
SQL Functions and OperatorsSQL Functions and Operators
SQL Functions and Operators
 
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)
 
Packages in PL/SQL
Packages in PL/SQLPackages in PL/SQL
Packages in PL/SQL
 
SQL
SQLSQL
SQL
 
introdution to SQL and SQL functions
introdution to SQL and SQL functionsintrodution to SQL and SQL functions
introdution to SQL and SQL functions
 

Ähnlich wie 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
 
Basics Of SAS Programming Language
Basics Of SAS Programming LanguageBasics Of SAS Programming Language
Basics Of SAS Programming Languageguest2160992
 
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
 

Ähnlich wie 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
 
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
 

Kürzlich hochgeladen

Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...ggsonu500
 
EMS and Extrication: Coordinating Critical Care
EMS and Extrication: Coordinating Critical CareEMS and Extrication: Coordinating Critical Care
EMS and Extrication: Coordinating Critical CareRommie Duckworth
 
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...High Profile Call Girls Chandigarh Aarushi
 
Call Girls Service Chandigarh Grishma ❤️🍑 9907093804 👄🫦 Independent Escort Se...
Call Girls Service Chandigarh Grishma ❤️🍑 9907093804 👄🫦 Independent Escort Se...Call Girls Service Chandigarh Grishma ❤️🍑 9907093804 👄🫦 Independent Escort Se...
Call Girls Service Chandigarh Grishma ❤️🍑 9907093804 👄🫦 Independent Escort Se...High Profile Call Girls Chandigarh Aarushi
 
Call Girl Bangalore Aashi 7001305949 Independent Escort Service Bangalore
Call Girl Bangalore Aashi 7001305949 Independent Escort Service BangaloreCall Girl Bangalore Aashi 7001305949 Independent Escort Service Bangalore
Call Girl Bangalore Aashi 7001305949 Independent Escort Service Bangalorenarwatsonia7
 
Globalny raport: „Prawdziwe piękno 2024" od Dove
Globalny raport: „Prawdziwe piękno 2024" od DoveGlobalny raport: „Prawdziwe piękno 2024" od Dove
Globalny raport: „Prawdziwe piękno 2024" od Doveagatadrynko
 
Hi,Fi Call Girl In Whitefield - [ Cash on Delivery ] Contact 7001305949 Escor...
Hi,Fi Call Girl In Whitefield - [ Cash on Delivery ] Contact 7001305949 Escor...Hi,Fi Call Girl In Whitefield - [ Cash on Delivery ] Contact 7001305949 Escor...
Hi,Fi Call Girl In Whitefield - [ Cash on Delivery ] Contact 7001305949 Escor...narwatsonia7
 
Book Call Girls in Hosur - 7001305949 | 24x7 Service Available Near Me
Book Call Girls in Hosur - 7001305949 | 24x7 Service Available Near MeBook Call Girls in Hosur - 7001305949 | 24x7 Service Available Near Me
Book Call Girls in Hosur - 7001305949 | 24x7 Service Available Near Menarwatsonia7
 
2025 Inpatient Prospective Payment System (IPPS) Proposed Rule
2025 Inpatient Prospective Payment System (IPPS) Proposed Rule2025 Inpatient Prospective Payment System (IPPS) Proposed Rule
2025 Inpatient Prospective Payment System (IPPS) Proposed RuleShelby Lewis
 
Call Girls Uppal 7001305949 all area service COD available Any Time
Call Girls Uppal 7001305949 all area service COD available Any TimeCall Girls Uppal 7001305949 all area service COD available Any Time
Call Girls Uppal 7001305949 all area service COD available Any Timedelhimodelshub1
 
College Call Girls Mumbai Alia 9910780858 Independent Escort Service Mumbai
College Call Girls Mumbai Alia 9910780858 Independent Escort Service MumbaiCollege Call Girls Mumbai Alia 9910780858 Independent Escort Service Mumbai
College Call Girls Mumbai Alia 9910780858 Independent Escort Service Mumbaisonalikaur4
 
2024 HCAT Healthcare Technology Insights
2024 HCAT Healthcare Technology Insights2024 HCAT Healthcare Technology Insights
2024 HCAT Healthcare Technology InsightsHealth Catalyst
 
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabad
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service HyderabadCall Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabad
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabaddelhimodelshub1
 
Call Girls Hsr Layout Whatsapp 7001305949 Independent Escort Service
Call Girls Hsr Layout Whatsapp 7001305949 Independent Escort ServiceCall Girls Hsr Layout Whatsapp 7001305949 Independent Escort Service
Call Girls Hsr Layout Whatsapp 7001305949 Independent Escort Servicenarwatsonia7
 
Book Call Girls in Noida Pick Up Drop With Cash Payment 9711199171 Call Girls
Book Call Girls in Noida Pick Up Drop With Cash Payment 9711199171 Call GirlsBook Call Girls in Noida Pick Up Drop With Cash Payment 9711199171 Call Girls
Book Call Girls in Noida Pick Up Drop With Cash Payment 9711199171 Call GirlsCall Girls Noida
 

Kürzlich hochgeladen (20)

Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
 
Call Girl Guwahati Aashi 👉 7001305949 👈 🔝 Independent Escort Service Guwahati
Call Girl Guwahati Aashi 👉 7001305949 👈 🔝 Independent Escort Service GuwahatiCall Girl Guwahati Aashi 👉 7001305949 👈 🔝 Independent Escort Service Guwahati
Call Girl Guwahati Aashi 👉 7001305949 👈 🔝 Independent Escort Service Guwahati
 
Call Girl Lucknow Gauri 🔝 8923113531 🔝 🎶 Independent Escort Service Lucknow
Call Girl Lucknow Gauri 🔝 8923113531  🔝 🎶 Independent Escort Service LucknowCall Girl Lucknow Gauri 🔝 8923113531  🔝 🎶 Independent Escort Service Lucknow
Call Girl Lucknow Gauri 🔝 8923113531 🔝 🎶 Independent Escort Service Lucknow
 
EMS and Extrication: Coordinating Critical Care
EMS and Extrication: Coordinating Critical CareEMS and Extrication: Coordinating Critical Care
EMS and Extrication: Coordinating Critical Care
 
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...
Russian Call Girls in Chandigarh Ojaswi ❤️🍑 9907093804 👄🫦 Independent Escort ...
 
Call Girls Service Chandigarh Grishma ❤️🍑 9907093804 👄🫦 Independent Escort Se...
Call Girls Service Chandigarh Grishma ❤️🍑 9907093804 👄🫦 Independent Escort Se...Call Girls Service Chandigarh Grishma ❤️🍑 9907093804 👄🫦 Independent Escort Se...
Call Girls Service Chandigarh Grishma ❤️🍑 9907093804 👄🫦 Independent Escort Se...
 
Call Girl Bangalore Aashi 7001305949 Independent Escort Service Bangalore
Call Girl Bangalore Aashi 7001305949 Independent Escort Service BangaloreCall Girl Bangalore Aashi 7001305949 Independent Escort Service Bangalore
Call Girl Bangalore Aashi 7001305949 Independent Escort Service Bangalore
 
Globalny raport: „Prawdziwe piękno 2024" od Dove
Globalny raport: „Prawdziwe piękno 2024" od DoveGlobalny raport: „Prawdziwe piękno 2024" od Dove
Globalny raport: „Prawdziwe piękno 2024" od Dove
 
Hi,Fi Call Girl In Whitefield - [ Cash on Delivery ] Contact 7001305949 Escor...
Hi,Fi Call Girl In Whitefield - [ Cash on Delivery ] Contact 7001305949 Escor...Hi,Fi Call Girl In Whitefield - [ Cash on Delivery ] Contact 7001305949 Escor...
Hi,Fi Call Girl In Whitefield - [ Cash on Delivery ] Contact 7001305949 Escor...
 
Russian Call Girls South Delhi 9711199171 discount on your booking
Russian Call Girls South Delhi 9711199171 discount on your bookingRussian Call Girls South Delhi 9711199171 discount on your booking
Russian Call Girls South Delhi 9711199171 discount on your booking
 
College Call Girls Dehradun Kavya 🔝 7001305949 🔝 📍 Independent Escort Service...
College Call Girls Dehradun Kavya 🔝 7001305949 🔝 📍 Independent Escort Service...College Call Girls Dehradun Kavya 🔝 7001305949 🔝 📍 Independent Escort Service...
College Call Girls Dehradun Kavya 🔝 7001305949 🔝 📍 Independent Escort Service...
 
Book Call Girls in Hosur - 7001305949 | 24x7 Service Available Near Me
Book Call Girls in Hosur - 7001305949 | 24x7 Service Available Near MeBook Call Girls in Hosur - 7001305949 | 24x7 Service Available Near Me
Book Call Girls in Hosur - 7001305949 | 24x7 Service Available Near Me
 
2025 Inpatient Prospective Payment System (IPPS) Proposed Rule
2025 Inpatient Prospective Payment System (IPPS) Proposed Rule2025 Inpatient Prospective Payment System (IPPS) Proposed Rule
2025 Inpatient Prospective Payment System (IPPS) Proposed Rule
 
Call Girls Uppal 7001305949 all area service COD available Any Time
Call Girls Uppal 7001305949 all area service COD available Any TimeCall Girls Uppal 7001305949 all area service COD available Any Time
Call Girls Uppal 7001305949 all area service COD available Any Time
 
College Call Girls Mumbai Alia 9910780858 Independent Escort Service Mumbai
College Call Girls Mumbai Alia 9910780858 Independent Escort Service MumbaiCollege Call Girls Mumbai Alia 9910780858 Independent Escort Service Mumbai
College Call Girls Mumbai Alia 9910780858 Independent Escort Service Mumbai
 
2024 HCAT Healthcare Technology Insights
2024 HCAT Healthcare Technology Insights2024 HCAT Healthcare Technology Insights
2024 HCAT Healthcare Technology Insights
 
Call Girls in Lucknow Esha 🔝 8923113531 🔝 🎶 Independent Escort Service Lucknow
Call Girls in Lucknow Esha 🔝 8923113531  🔝 🎶 Independent Escort Service LucknowCall Girls in Lucknow Esha 🔝 8923113531  🔝 🎶 Independent Escort Service Lucknow
Call Girls in Lucknow Esha 🔝 8923113531 🔝 🎶 Independent Escort Service Lucknow
 
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabad
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service HyderabadCall Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabad
Call Girl Hyderabad Madhuri 9907093804 Independent Escort Service Hyderabad
 
Call Girls Hsr Layout Whatsapp 7001305949 Independent Escort Service
Call Girls Hsr Layout Whatsapp 7001305949 Independent Escort ServiceCall Girls Hsr Layout Whatsapp 7001305949 Independent Escort Service
Call Girls Hsr Layout Whatsapp 7001305949 Independent Escort Service
 
Book Call Girls in Noida Pick Up Drop With Cash Payment 9711199171 Call Girls
Book Call Girls in Noida Pick Up Drop With Cash Payment 9711199171 Call GirlsBook Call Girls in Noida Pick Up Drop With Cash Payment 9711199171 Call Girls
Book Call Girls in Noida Pick Up Drop With Cash Payment 9711199171 Call Girls
 

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