I need to insert comma's into both the header and data for the following CARLa code used to generate on demand, expanded access list reports so that the report can be emailed to the end user as a .csv file which they can open in microsoft excel.
1st iteration carla:
sortlist class key acl(sort(user),resolve) acl:name acl:instadata(hor,0)
This iteration returns a column based report with headers and the data required. It is suitable for .txt file format.
2nd iteration carla:
sortlist class | "," |,
key(",Covering Profile") | "," |,
acl(sort(user),resolve) | "," |,
'"' | acl:name(",Name",22) | '"' | "," |,
'"' | acl:instdata(",Installation Data",hor,0) | '"'
This iteration 1)adds comma's between the data, 2)adds comma's before each column header, and 3) wraps free form text fields inside quotes so that potential comma's (like inside a name) are treated appropriately in a .csv file and do not offset cells inside excel.
The notable exception with the 2nd iteration is that 'acl(sort(user),resolve)' actually produces 4 space delimited columns. This does not transfer into a csv file very well and I need to replicate these 4 columns with comma separators instead of spaces.
I have tried substituting 'acl(sort(user),resolve)' with variations on
acl(sort,resolve,",ID"),
acl(sort,resolve,aclaccess,",Access"),
acl(sort,resolve,aclid,",ACL id"),
which still doesn't quite replicate the results of acl(sort(user),resolve). The conditional access under column header 'When' is missing (I haven't found a substitute in the CARLa manual yet) and the available data output isn't quite right anyway.
How can I either 1) replace the column delimiter spaces in acl(sort(user),resolve) with comma's or 2) build substitute CARLa code which would replace acl(sort(user),resolve) so that I can manually insert comma's?
#Support#SupportMigration#ZSecurity