Hello,
Think about the jcl you want to run. It will be a JOB, at least one EXEC with a parm, and some DD statements. Whatever this jcl, it should be the "sample" you generate.
I believe i also mis-read your initial post. Do you really want to use a dataset name as a parm to a program? When i read this originally, i thought you wanted to use a dataset name from a file in a dd statement (possibly using a symbolic parm.
Maybe it will help if you post the jcl you want to execute and explain where the parm comes in and how the parm would be used in the process.
Sorry for getting lost. . .