I was going to post the jcl here, but that is to much trouble :-) ...
Go to the CAL2JCL library and there is a member called AL2SQL. You would specify OPT=C to read in member (AL2SOPTC) from the CAL2OPTN dataset. This member has the options for creating CSV file. You also need to override the STDOUT DD SYSOUT=* to point to a dataset set. I used the following DCB for my STDOUT:
//STDOUT DD DSN=RODERICK.TEST.CSV,DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(5,5)),
// DCB=(RECFM=VB,LRECL=32756,BLKSIZE=32760)