On Feb 6, 2008, at 3:31 PM, Ted MacNEIL wrote:

I think it violates the principle of least astonishment. Writing to a PDS as a PS dataset is almost certainly done by accident. It would be nice it IDCAMS would just say "You didn't want to do that.".

It's not an IDCAMS issue.
It's a documented (flaw) feature of JCL.
The first place searched for file attributes is the executing programme.
If it thinks the file is sequential, it is treated as such.



Ted:

I disagree with you. it is IMO an OPEN issue it should return a RC that indicates that open was successful but as a sequential dataset. Although it might break a lot of code its a close call IMO. I think it revolves around OPEN and a feedback code (which is not presented to the end user) so IDCAMS is not really at fault its OPEN that has the flaw, although I can see it from both sides. I can see where IBM would say BAD and walk away from it, or say its fixed in rel 9999. Its a no when situation as IBM coded open the way they did and who knows how much code would need to be fixed? Now if someone had caught this back in the 60's maybe.. but not this late in the game. On the other hand they could make IDCAMS (if this is coded in the JCL create a member called tempname. This might also break programs, but probably less than the first.

Ed

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to