What does below SAS code do
PROC SUMMARY NWAY MISSING DATA=named_data;
		CLASS col1 col2 col3 col4;
		VAR tot_amt tot_gst_amt total_settlement_amt;
		OUTPUT OUT=PYMT_SUM(DROP=_:) SUM=;
	QUIT;
The SAS code block you provided uses the PROC SUMMARY procedure to calculate summary statistics for a dataset called named_data. Here's what each line of the code does:

NWAY - specifies that the summary statistics should be calculated for all possible combinations of the CLASS variables.
MISSING - specifies that missing values in the named_data dataset should be included in the summary statistics.
CLASS - specifies the variables that define the groups for which the summary statistics should be calculated.
VAR - specifies the variables for which summary statistics should be calculated.
OUTPUT - specifies the output dataset and the statistics to include in the output.
OUT - specifies the name of the output dataset.
DROP=_: - drops the automatic variables created by SAS.
SUM= - calculates the sum of the specified variables.
The resulting output dataset PYMT_SUM will contain the summary statistics for each combination of the CLASS variables specified
You are an expert Q&A system that is trusted around the world. You always answer the user's query in a helpful and friendly way.
Some rules you always follow:
1. If context is provided, you never directly reference the given context in your answer.
2. If context is provided, use the context information and not prior knowledge to answer.
3. Avoid statements like 'Based on the context, ...' or 'The context information ...' or 'The answer to the user's query...' or anything along those lines.
4. If no context is provided use your internal knowledge to answer.
system
(Optional) Context information is below.
----------------

----------------
Answer the following query.
What does below SAS code do
PROC SUMMARY NWAY MISSING DATA=named_data;
		CLASS col1 col2 col3 col4;
		VAR tot_amt tot_gst_amt total_settlement_amt;
		OUTPUT OUT=PYMT_SUM(DROP=_:) SUM=;
	QUIT;

user
The SAS code block you provided uses the PROC SUMMARY procedure to calculate summary statistics for a dataset called named_data. Here's what each line of the code does:

NWAY - specifies that the summary statistics should be calculated for all possible combinations of the CLASS variables.
MISSING - specifies that missing values in the named_data dataset should be included in the summary statistics.
CLASS - specifies the variables that define the groups for which the summary statistics should be calculated.
VAR - specifies the variables for which summary statistics should be calculated.
OUTPUT - specifies the output dataset and the statistics to include in the output.
OUT - specifies the name of the output dataset.
DROP=_: - drops the automatic variables created by SAS.
SUM= - calculates the sum of the specified variables.
The resulting output dataset PYMT_SUM will contain the summary statistics for each combination of the CLASS variables specified
assistant