You hit the nail on the head... "Can a data step see the files in the same session?" I think that may be the real question... On z/OS the .CSV file is a permanent file that is overwritten in the SAS program using %DS2CSV (RUNMODE=B, DATA=DATAT1, CSVFREF=CSV1, LABELS=Y,... Then the step ends and in the next job step I use SAS to email it. When I converted, I created some empty files manually, then in my SAS program I created filerefs for them and wrote to the file using %DS2CSV... The last thing I did was attempt to email them (which fails with Physical file does not exist),,, So, again, I think you may have the right question... "Can a data step see the files in the same session?" My attempt to address this was the "filename csv1 clear ;" statement (which did not work), but maybe there is another command/statement that I have overlooked?
... View more