Hi
I call an C program from a job step : //EXECSTEP EXEC PGM=MYPROG
In that job I defined DD statement : //IN DD DSN=...,DISP=SHR
Inside my C program I want to obtain Data Set Name from DD name using a call to bpxwdyn : int ret = bpxwdyn("INFO DD(IN) INRTDSN(buffer)");
How should i declare variable "buffer" and how should it be specyfied in bpxwdyn call to make it include Data Set Name after call to bpxwdyn ?
When I declare buffer variable as : char buffer[256]; then call to bpxwdyn mentioned above returns 0 so it seems it works but I don't get anything in "buffer" variable.
Best Regards
sulmi