The SAS (via the DAL) will automatically log the command line format of the task, containing the values of all arguments, to the history attribute of a data set.