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

Error in Run jcl


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

Global Moderator


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

PostPosted: Tue Oct 12, 2010 1:53 pm
Reply with quote

I do not think that I could exhibit rudeness required to achieve a level Ankoo deserves for
  • changing jcl on the fly and complaining about errors
  • not bothering to look in the manuals
  • posting truncated messages


It is obvious why he asks his questions in an anonymous internet forum
instead of his peers/co-workers.
They have undoubtedly had enough of his apathetic efforts of self-enlightenment,
inability to grasp elemental concepts
and general obliviousness to his actions.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Oct 12, 2010 4:12 pm
Reply with quote

ankoo, since you did not provide the full statements (there is more to the right on the SYSOUT screen), there's no way anybody can help you. The file status code will tell you precisely what the problem is -- and there's even a sticky on the COBOL forum to take you directly to the file status codes.
Back to top
View user's profile Send private message
ankoo

New User


Joined: 12 Jun 2010
Posts: 31
Location: India

PostPosted: Tue Oct 12, 2010 5:09 pm
Reply with quote

I got it the file status code was 35 and I corrected it by usinf File Status after the select statement

But Still not able to solve the problem of using two files, by using the following code the variable is not picking up the values so it is showing no output!
Code:
//INFILE   DD DSN=PWSX.R9SSHC6.FLAT1,DISP=SHR
//         DD DSN=PWSX.R9SSHC6.FLAT2,DISP=SHR

My peers are saying to use two DD statements and not one I have used above.Anyone knowing how to use two DD statements
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Oct 12, 2010 5:14 pm
Reply with quote

Code:
There was an unsuccessful OPEN or CLOSE of file FLAT1 in program STU
I can not see a file FLAT1 in your JCL

If you are the author of the program or have access to the source, what are the filenames that you should be using, and are you using them.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Tue Oct 12, 2010 5:23 pm
Reply with quote

Expat,

the TS is referring to part of the datsetname in his program.
You can see that in another post from his hand.

ibmmainframes.com/viewtopic.php?t=51657
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 12, 2010 5:28 pm
Reply with quote

Quote:
My peers are saying to use two DD statements and not one I have used above.Anyone knowing how to use two DD statements

the ignorance/incompetence of Your peers is appalling
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Oct 12, 2010 5:32 pm
Reply with quote

*sigh* I've just returned from that thread
Pass the valium
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 12, 2010 5:34 pm
Reply with quote

just went there, let' s admit it... the fantasy of the TS is amazing
Code:
//INFILE DD ....

where did that come from ???
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Tue Oct 12, 2010 5:39 pm
Reply with quote

The TS is doing me a favour. He is giving me an excuse to start boozing
early.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


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

PostPosted: Tue Oct 12, 2010 5:56 pm
Reply with quote

Since you have opened two posts, I must reply to both - a minor hassle:

You seem to be attempting to write/learn COBOL and JCL on the fly.

Seriously - my rec is that you take an actual class (or 2 (or 3 ...)) with a human instructor.

Your errors above (both posts) are very elemental. Linking the file name in COBOL to the dataset in the JCL is covered early in any intro class.

This may be too complicated to learn otherwise.

Good luck.
Back to top
View user's profile Send private message
ankoo

New User


Joined: 12 Jun 2010
Posts: 31
Location: India

PostPosted: Wed Oct 13, 2010 10:20 am
Reply with quote

Quote:
You seem to be attempting to write/learn COBOL and JCL on the fly.

Yes I am learning COBOL, JCL as I am in a Mainframe project.Here I am getting no human assistance.Frankly speaking my peer tell me to find errors,abends in google and then correct them.They say this is the way you will learn.I am following there instructions. If anyone is disturbed I am sorry,I am just trying to learn things.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 13, 2010 12:33 pm
Reply with quote

the two related topics being discussed lately do not tackle a quick and dirty solution of an issue
but are due to insufficient training and lack of the expected in house support

replying / sharing OUR hardly earned skills on a forum is
on our time, our equipment
free of charge

a forum is not a substitute for the services that should be provided in house
and it' s wrong to expect people to give free consultancy/training to companies
who as in Your case have the standard of not providing them
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


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

PostPosted: Wed Oct 13, 2010 5:32 pm
Reply with quote

Your peers are idiots, or is it morons, or is it imbeciles? I can never remember which is which anymore.

Their method may get you by a particular sticky issue in a pinch, but if you want to learn for a career, then start at the beginning.

Would you hire a carpenter to build a house if his peers told him what yours tell you? How about a doctor? Any other occupation?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Oct 13, 2010 8:58 pm
Reply with quote

Phrzby Phil wrote:
Your peers are idiots, or is it morons, or is it imbeciles? I can never remember which is which anymore.

Morons have IQs of 51-75; imbeciles of 26-50; and idiots of 0-25.

Whilst I won't conduct a spirited defense of Ankoo's cow-orkers, I will go so far as to suggest that when they told him to Google the nature of and fixes for his errors, they did not mean, "Find a mainframe help forum and demand that the experts posting there spoon-feed you the answers".
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


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

PostPosted: Wed Oct 13, 2010 9:04 pm
Reply with quote

Actually, in my opinion (been programming since '64), that would have been better advice than the duct tape version that we presume they gave him.

Thanks also, for the IQ definitions.

I am now willing to call them idiots.
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top