Thanks for your reply. I'm not so lazy.. :-) This is not a way to avoid cond in some steps... I try to explain better the concept and apologize if my english is so complicate to understand.
In Icetool, for example, we can code ABEND to terminate abnormally the execution of a step(using in this case DFSPARM) avoiding so the allocation of a set of file allowing so a perfect restart from the same step(if we code, i.e. DISP=(,CATLG,DELETE)) When we use idcams and an error occur, result is only a return code, not properly an error... so IDCAMS never satisfy the 3th disposition of cond in jcl. What I'm looking for is a way to pass or code in my step some exit to control the execution to satisfy cond of jcl... and all this using idcams only(I know that with a program is easy) All comment are wellcome... 2006/1/26, David Andrews <[EMAIL PROTECTED]>: > > On Thu, 2006-01-26 at 14:23 +0100, R.S. wrote: > > Answer to message body: In fact I don't understand your intention. What > > do you want to get ? I believe, that IDCAMS abend is not the goal, > > I seem to recall that e.g. SORT and FDR both have options to ABEND in > lieu of returning a severe RC. Marco probably wishes for something > similar in IDCAMS. > > This can be useful behavior if you are lazy and don't want to code COND= > in all your JCL. Maybe a wrapper program will do the trick: > > ATTACHX EP=IDCAMS,ECB=ATCHECB, ... > ST R1,ATCHTCB > WAIT ECB=ATCHECB > LA R1,ATCHTCB > DETACH (1) > CLC ATCHECB+1(3),=XL3'00' Subtask terminated well? > JNE ABEND No, take action (ABEND?) > > -- > David Andrews > A. Duda and Sons, Inc. > [EMAIL PROTECTED] > > ---------------------------------------------------------------------- > 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 > -- Marco Indaco MF Consultant Loc: Milan, Italy ---------------------------------------------------------------------- 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

