The data (10000 observations) is artificially generated directly within the DATA step via a `DO` loop. It does not come from pre-existing external data sources or standard SAS libraries like SASHELP.
1 Code Block
PROC DELETE
Explanation : Deletes the `ORBULK13` table from the `mydblib` library if it exists. This is often done to ensure a clean state before recreating or loading data.
Copied!
proc delete data=mydblib.ORBULK13;
run;
1
PROC DELETEDATA=mydblib.ORBULK13;
2
RUN;
2 Code Block
DATA STEP Data
Explanation : This DATA step creates the `ORBULK13` table in the `mydblib` library. The `BULKLOAD=YES` option enables bulk loading for optimized performance when inserting large amounts of data. `BL_OPTIONS` specifies bulk loading specific parameters: `ERRORS=999` allows up to 999 errors before stopping, and `LOAD=2000` indicates to load only the first 2000 generated rows, even if the `DO` loop produces 10000 observations.
Copied!
data mydblib.ORBULK13 ( bulkload=yes
BL_OPTIONS=' ERRORS=999, LOAD=2000' );
do i=1 to 10000 ;
c1=1; output;
end;
run;
1
DATA mydblib.ORBULK13 ( bulkload=yes
2
BL_OPTIONS=' ERRORS=999, LOAD=2000' );
3
DO i=1 to 10000 ;
4
c1=1; OUTPUT;
5
END;
6
RUN;
3 Code Block
PROC DELETE
Explanation : Deletes the `ORBULK13` table from the `mydblib` library again, thus cleaning up the environment after the example execution.
Copied!
proc delete data=mydblib.ORBULK13;
run;
1
PROC DELETEDATA=mydblib.ORBULK13;
2
RUN;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.