Hi Laura
The NEWLIST command can be used to control output format using the HEADER parameter:
CSV - comma separated variables
CSVT - CVS with a title line
TSV - tab separated variables
TSVT - TSV with a title line
zSecure put the column header into the title line, so you can influence this value using overriding headers in the SORTLIST command.
For example
newlist type=racf dd=ckr2pass header=csvt
s class=user special
sortlist key("userid") dfltgrp owner creadate("created")
generates
userid,DfltGrp,Owner,created
AES,OMVS,ROOT,"29 Jun 2007"
ALOG,SYS1,SYS1,"10 Feb 2021"
BL,OMVS,IBMUSER," 7 Jul 2003"
BPXROOT,OMVS,IBMUSER,"23 May 2014"
Field values with spaces and special characters are quoted, so if you want your spreadsheet to interpret these as dates, select a format or length that doesn't contain spaces, and preferably only contains numbers, such as USDATE or $DATE.
You might actually prefer HEADER=TSVT because this uses the TAB character between fields, so quotes are much less of an issue. Spreadsheets know how to interpret TSV files.
#ZSecurity#Support#SupportMigration