Please, anyone, let me know the style or an example of using
'by='/'by' variable of a PDV(Program Data Vector)

Answer Posted / rajesh

list of 'by' variables tell SAS how data is stored in
source dataset or how it is to be represented in
output/output dataset.

PDV is used to write the observations in output dataset and
it does not get impected from any BY variable as data in
SAS always read sequencely. If BY vaialbes are there then
it just ensures that source dataset is sorted on list of BY
variables. It does not impact other thing.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what techniques and/or procs do you use for tables? : Sas programming

573


What is SAS? What are the functions does it performs?

729


How would you identify a macro variable? : sas-macro

530


what is metadata? : Sas-bi

598


Given an unsorted data set, how to read the last observation to a new data set?

834






what other sas products have you used and consider yourself proficient in using? : Sas programming

682


what are the benefits of data integration? : Sas-di

537


What are the limitations for memory allocation for SAS variables

927


Briefly explain input and put function?

625


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

1795


why is sas considered self-documenting? : Sas programming

678


what versions of sas have you used (on which platforms)? : Sas programming

582


what is sas application server? : Sas-di

537


which date function advances a date, time or datetime value by a given interval? : Sas programming

592


How do you convert basic cube to transaction cube and transaction cube to basic cube?

1770