ALLOW_READ_PROTECTED_MEMBER | specifies a value of "YES". It is important to note that the password and encryption attributes are not preserved in the intermediate published format (whether on a queue or in an archive). Because of this exposure, take care when publishing data sets that are password protected, encrypted or both. The ALLOW_READ_PROTECTED_MEMBER property must be asserted on read-protected data sets in order to be published. This property ensures that the publisher realizes that this is a read-protected data set, and that the read password and encryption attributes are not preserved when stored in the intermediate format. If this property is not applied, then the publish operation fails when trying to publish the read-protected data set. |
DATASET_OPTIONS | specifies data set options. For a complete list of data set options, see the SAS Data Set Options topic in the SAS Help. |
TRANSFORMATION_TYPE | indicates that the data set should be transformed to the specified type when published. At this time, the only supported value for this property is CSV, for Comma-Separated-Value. |
CSV_SEPARATOR | indicates the separator to use when creating the CSV file. The default separator is a comma (,). |
CSV_FLAG | indicates a CSV override flag. Supported values include NO_VARIABLES, NO_LABELS, and EXTENDED. By default, when writing numeric variable values into the CSV file, BEST is used to format numerics that have no format associated with them. To override this default, specify the property value EXTENDED on the CSV_FLAG property. This extends the number of digits used as the precision level. By default, if the data set is transformed into a CSV file, then the file's first line contains all of the specified variables. The second line contains all of the specified labels. To override this default behavior, specify flags with values "NO_VARIABLES" or "NO_LABELS". To specify both values, a CSV_FLAG property must be specified for each. |
prop='TRANSFORMATION_TYPE,CSV_SEPARATOR,CSV_FLAG,CSV_FLAG'; ttype='CSV'; separator='/'; flag1 = 'NO_VARIABLES'; flag2 = 'NO_LABELS'; CALL INSERT_DATASET(packageId, libname, memname, desc, nameValue, rc, prop, ttype, separator, flag1, flag2);
libname = 'hr'; memname ='employee'; desc = 'Employee database.'; nameValue=''; properties="DATASET_OPTIONS, ALLOW_READ_PROTECTED_MEMBER"; opt="READ=abc Where=(x<10)"; allow="yes"; CALL INSERT_DATASET(packageId, libname, memname, desc, nameValue, rc, properties, opt, allow);
libname = 'hr'; memname = 'employee'; desc = 'Employee database.'; nameValue=''; ttype ='CSV'; prop = "TRANSFORMATION_TYPE"; CALL INSERT_DATASET(packageId, libname, memname, desc, nameValue, rc, prop, ttype);