IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COND problem


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Fri Jun 18, 2010 3:59 pm
Reply with quote

Hi All,

Please see the example and help me.

In my first step i wrote PGM name is IEBG which is not present as load module, my second step02 is correct, my third step is correct.

My question is

in the first step i get S806 error and bcose of that it should not execute second one, i have coded COND=ONLY so why my STEP03 is getting executed? COND=ONLY say if prevous step is abnormally ended this step will execute but STEP02 is not at all executed????

//IGTAAN30A JOB
//STE01 EXEC PGM=IEBG
//SYSPRINT DD SYSOUT=*
----
//STE02 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
----
//STE02 EXEC PGM=IEBGENER,COND=ONLY
//SYSPRINT DD SYSOUT=*
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jun 18, 2010 4:13 pm
Reply with quote

You have answered your own question.

So why would you expect step2 to execute
Why are you surprised that step3 did execute
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Fri Jun 18, 2010 4:36 pm
Reply with quote

My question is ....COND=ONLY excutes based on which step??? STEP01 or STEP02 ?????
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jun 18, 2010 4:38 pm
Reply with quote

With a variation of a Bob Dylan classic - - - The answer my friend is laying in the manual, The answer is laying in the manual

Which is where you should have looked before posting. The JCL reference manual is easily reached by hitting the "IBM Manuals" button at the top of any page.
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Fri Jun 18, 2010 4:47 pm
Reply with quote

Thank you for calling me as friend....

Plz answer the big question i have , what kind of questions we are supposed to ask ???

If all the people start searching the manual then what is the use of having a forum like this.

Regards
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jun 18, 2010 5:08 pm
Reply with quote

shreejita wrote:
Plz answer the big question i have , what kind of questions we are supposed to ask ???

If all the people start searching the manual then what is the use of having a forum like this.

What kind of questions are you supposed to ask - Well, certainly not extremely basic JCL-101 questions which would probably have taken you less time to find yourself in the manual than it did to post here and then reply again. Have you found the answer yet ?

The forum should offer help in many ways, not just technical issues but also in different approaches on how to deal with problems based on past experience. Certainly not as a library reference service for things that are explained in manuals which are easily accessible to all and sundry.

Let's face it, this is a HELP forum rather than a DO IT FOR ME forum. People who contribute on the forum do so entirely because they want to. They are not paid for their efforts, but if we feel that we can make the effort to help others then I say that we can feel justified in stating that others who want our help should show that they themselves had made an effort to resolve their problems before posting.

It is such a shame when you point people along a path of self learning that rather than appreciate our efforts they just get a bit humpy and start throwing teddy out of the pram.

Oh well, C'est la vie
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Jun 18, 2010 5:10 pm
Reply with quote

Quote:
COND=ONLY say if prevous step is abnormally ended this step will execute


First, please quote where in the manual you found this quote from your post. That may help clear this up. Also, please define what you think "previous" means.

Second, I don't see a STEP03 in your code, but rather two STE02's. So you must admit this is confusing.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 18, 2010 5:13 pm
Reply with quote

Quote:
Plz answer the big question i have , what kind of questions we are supposed to ask ???

If all the people start searching the manual then what is the use of having a forum like this.
You are supposed to ask questions that are not easily answered by spending 5 or 10 or 20 minutes in a manual ... or where you do not understand what the manual is telling you. A forum like this is also helpful in advising people who want to do questionable things (such as writing their own scheduling system) about why they don't really want to do this.

If you check the syntax diagram in section 16.5.1 of the JCL Language Reference manual (link at the top of the page), you will notice that up to 8 tests can be specified by step name and procedure step name -- 7 if using EVEN or ONLY. If you continue reading, you will find that if you don't specify any steps for the COND to apply to, the test applies to all preceding steps. Since you didn't specify any steps for the COND to apply to, it applies to BOTH STE01 and STE02 (not STEP01 and STEP02 as your post inidicates -- since the JCL will give step names and STEP01 and STEP02 do not occur in the JCL). You have a typo in one place or the other -- not a good thing when specific names are critically important.
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Fri Jun 18, 2010 5:40 pm
Reply with quote

EXPAT,

Sorry i copied my STEP02 twice .....My question was whether it checks for STEP01 or STEP02.

How do you say a question is simple or complex?? Do you have any measurment ? For you simple may be complex for me or vice versa.

So before we ask any question to forum we need to say our experience in terms of years.

I never asked my queries for answering you so rudely and hurt anybody.If you feel you are doing favour helping others with free of cost then you should stop that not be part of this great forum rather open an consultant.

Do not compare/under estimate your knowledge with some body.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jun 18, 2010 5:52 pm
Reply with quote

shreejita wrote:
How do you say a question is simple or complex?? Do you have any measurment ? For you simple may be complex for me or vice versa.
If the answer can be quickly found in the manual then that is obviously an easy question.

shreejita wrote:
So before we ask any question to forum we need to say our experience in terms of years.
No, just evidence that you yourself have tried to find the answer before posting.

shreejita wrote:
I never asked my queries for answering you so rudely and hurt anybody.If you feel you are doing favour helping others with free of cost then you should stop that not be part of this great forum rather open an consultant.
I am a consultant

shreejita wrote:
Do not compare/under estimate your knowledge with some body.
I'm not, merely pointing out that the answer to your question could have been so easily found yourself with 10 minutes in the manual.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jun 18, 2010 6:05 pm
Reply with quote

shreejita wrote:
EXPAT,

Sorry i copied my STEP02 twice .....My question was whether it checks for STEP01 or STEP02.

How do you say a question is simple or complex?? Do you have any measurment ? For you simple may be complex for me or vice versa.

So before we ask any question to forum we need to say our experience in terms of years.

I never asked my queries for answering you so rudely and hurt anybody.If you feel you are doing favour helping others with free of cost then you should stop that not be part of this great forum rather open an consultant.

Do not compare/under estimate your knowledge with some body.


typical complaint of an individual too lazy to research,
and too hard-headed, conceited, self-indulgent,
to accept that maybe he is wrong.

shreejita,
although you (as some other posters) think that this forum is a place
where you can have someone else perform tasks for which you get paid,
only the DFSORT and SYNCSORT forums of this board are staffed by people,
paid by companies which own the product for which they are supporting,
will provide you with ready to go answers.

unfortunately, the other forums of this board are frequented by people such as Expat,
who are willing to provide help to those who need help,
and at times will not provide answers to those who believe are just plain lazy,
or in your case, believe they have a right - which does not exist.

and instead of you modifying your attitude,
you hand out the usual obfuscating dribble to change the subject to 'poor me'.

you accuse Expat of using mean and hurtful words.
I accuse you of being self-indulgent, insensitive, lazy, and parasite of opportunity of those who are willing to share.

Your ability to avoid responsibility
under a mask of political correctness and BS logic better suits you
to be a politician instead of someone who actually has to master a task.

The excuse that 'oh, I made a typo', of a second class technician,
has nothing to do with experience - is indicative of attitude.
There are facilities (preview buttons) to provide you the means of proper communication.
That you chose not to use them, and instead use this 'poor me' argument,
insures that you will probably continue to receive little other than links to manuals.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jun 18, 2010 6:11 pm
Reply with quote

After seeing this in your profile :

Quote:

Occupation: professional
Mainframe Skills: cobol,jcl,db2,pl1,asm,cics


Im wondering why you even ask questions like you did. Is that to
test the knowledge/experience of other forum members?
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Fri Jun 18, 2010 6:20 pm
Reply with quote

took me 2 minutes to search manual for cond=only to find answer.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Fri Jun 18, 2010 6:21 pm
Reply with quote

and I was watching mylie cyrus & bret michaels on GMA concurrently.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jun 18, 2010 6:23 pm
Reply with quote

dneufarth wrote:
and I was watching mylie cyrus & bret michaels on GMA concurrently.


36_2_18.gif
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Fri Jun 18, 2010 6:57 pm
Reply with quote

shreejita,

Be not dismayed nor insulted.

All here expect you to at least have a try at searching the online reference manuals and provide good examples. Your example was fine.

Just beware that most here head to the manuals first and then ask for help. Besides we are surly, old people and curmudgeons of programmings' finest hours -- the twilight of computing.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 18, 2010 8:21 pm
Reply with quote

Hello,

Quote:
If all the people start searching the manual then what is the use of having a forum like this.
One use of this forum is to clarify your doubt when you find something in a manual that is not clear. If you find something that is not clear, post what you found and your doubt. Someone here will be able to clarify.

We are not here to read the manuals for you, write your code for you, or any other such thing (such as spoon-feeding or diaper-changing). If you're hungry, we will try to teach you to fish - not just toss you a sandwich. If you've made a mess, we will try to help clean it up.

We are here to help and maybe even provide some learning.

We also have another forum for students and freshers that may be more suitable for you. We might still say to read the manual, but will often provide the direct link to the page you need. . .
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Sat Jun 19, 2010 11:32 am
Reply with quote

Thanks all for being nice to me.

As per a simple doubt (as per your views) so many great experienced people have jumped with nice suggestion. I appreciate.

For your knowledge i had gone thru the manual and things was not clear and thoght to ask and confirm it.

Again i request you all when you reply please try to understand the complexity and urgency and be nice to all with few good words not with having everything knowing manner.

Please stop this here.

Thanks & Regards

[/quote]
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts Job scheduling problem. JCL & VSAM 9
Search our Forums:

Back to Top