On Friday, 12/17/2010 at 01:11 EST, Neale Ferguson <ne...@sinenomine.net> 
wrote:
> I think I'm missing something obvious here but I've been staring at it 
so
> long I can't see the problem. The code fragment -
> 
> char exsbuff[sizeof(exsh_t) + sizeof(exsf_t)];
> int lExsbuff = sizeof(exsbuff);
> char *fName = "PROFILE EXEC";
> int lFname = strlen(fName);
> int lCommit = 6;
> 
> DMSCSL("DMSEXIST", &rc, &reason, fName, lFname,
> &exsbuff, lExsbuff, "COMMIT", lCommit);
> 
> The result of the CSL call is:
> rc: 8 reason: 90530
> 
> Where 90530 = The namedef part of the file ID or dirname parameter does 
not
> exist or was used incorrectly.
> 
> Why is fName being interpreted as a namedef rather than a 
filename/filetype
> combination?

I think you're missing the filemode.  Without it, it's being interpreted 
as 'namedef1 namedef2'.

Alan Altmark

z/VM and Linux on System z Consultant
IBM System Lab Services and Training 
ibm.com/systems/services/labservices 
office: 607.429.3323
alan_altm...@us.ibm.com
IBM Endicott

Reply via email to