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

what is the problem with this JCL?


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

New User


Joined: 14 Nov 2007
Posts: 6
Location: Pune

PostPosted: Wed Nov 18, 2009 8:19 pm
Reply with quote

Hi,
I wrote the following JCL and when i submitted it, it was not giving me any output. can anyone assist me in solving the problem with it.


//HMADHAV JOB (12345678), HMADHAV, NOTIFY=&SYSUID,
// CLASS = A, MSGLEVEL=(2,1),MSGCLASS=H
//STEP1 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//DD1 DD DSN=HMADHAV.TEST.PS1,
// DISP=(NEW,CATLG,CATLG),
// SPACE=(TRK,(1,2)),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Nov 18, 2009 8:23 pm
Reply with quote

Code:
//HMADHAV JOB (12345678), HMADHAV, NOTIFY=&SYSUID,
// CLASS = A, MSGLEVEL=(2,1),MSGCLASS=H

Remove any imbedded blanks from the jobcard.
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: Wed Nov 18, 2009 8:28 pm
Reply with quote

Problem 1: you did not post using BBcode
Problem 2: blanks within parameters of the job card will cause the job to fail without notice

Also, IEFBR14 doesn't need SYSPRINT since it doesn't do anything. And a block size of 800 is almost criminally negligent these days -- block sizes should be determined by the system, or set as close to half-track blocking as you can get (at least for disk).
Back to top
View user's profile Send private message
venumadhav.hari

New User


Joined: 14 Nov 2007
Posts: 6
Location: Pune

PostPosted: Wed Nov 18, 2009 8:38 pm
Reply with quote

HI,
Thanks for the replys.

I am really new to IBM MF.

I have removed the extra spaces in jobcard.

Now I am getting the following error

21.06.11 JOB29001 $HASP165 HMADHAVA ENDED AT N1 - JCL ERROR CN(INTERNAL)
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Nov 18, 2009 8:41 pm
Reply with quote

Well, as we can not see your terminal from here, it may be just a bit of an idea to post the output.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Nov 18, 2009 8:45 pm
Reply with quote

Quick answer is -- correct the JCL eror and SUBmit it again. And the suggestion is, please show us the "actual JCL" you submit and the full SYSOUT messages. Please use BBcode when you post again.
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: Wed Nov 18, 2009 11:14 pm
Reply with quote

Hello,

Quote:
Now I am getting the following error
21.06.11 JOB29001 $HASP165 HMADHAVA ENDED AT N1 - JCL ERROR CN(INTERNAL)
There is additional diagnostic info available. . .

As Anuj and Expat mentioned, you need to post the actual jcl that was submitted (using the Code tag) along with the diagnostic info presented.
Back to top
View user's profile Send private message
venumadhav.hari

New User


Joined: 14 Nov 2007
Posts: 6
Location: Pune

PostPosted: Thu Nov 19, 2009 12:38 am
Reply with quote

Code:
//HMADHAV JOB (12345678),HMADHAV,NOTIFY=&SYSUID,
// CLASS=A,MSGLEVEL=(2,1),MSGCLASS=H
//STEP1 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//DD1 DD DSN=HMADHAV.TEST.PS1,
// DISP=(NEW,CATLG,CATLG),
// SPACE=(TRK,(1,2)),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//


This is what actually i have submitted as a job.
Now I am getting the message

Code:
00.56.54 JOB29141 $HASP165 HMADHAVS ENDED AT N1 - JCL ERROR CN(INTERNAL)


After submission of the job I went to SDSF and Option ST as well as O but i did not find any entry related to my job.
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: Thu Nov 19, 2009 1:11 am
Reply with quote

Hello,

It is possible that you have an invalid JOB statement. Suggest you compare this JOB statement to one that works.

Also, you might try msglevel=(1,1) or remove the parameter altogether so the defaults for the system will be used. What is msgclass=h on your system?
Back to top
View user's profile Send private message
flyingleo

New User


Joined: 09 Jul 2009
Posts: 14
Location: Stamford, CT

PostPosted: Thu Nov 19, 2009 1:17 am
Reply with quote

change ur job parameter

Code:

//HMADHAV JOB (12345678),'HMADHAV',NOTIFY=&SYSUID,CLASS=X,MSGCLASS=X 
//STEP1 EXEC PGM=IEFBR14                                             
//DD1 DD DSN=HMADHAV.NOV1.PS1,                                       
// DISP=(NEW,CATLG,CATLG),                                           
// SPACE=(TRK,(1,2)),                                                 
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)   
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: Thu Nov 19, 2009 1:34 am
Reply with quote

Hello,

Probably safer not to suggest msgclass=x - unless you work on the same system and know how it used there. . .
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: Thu Nov 19, 2009 1:34 am
Reply with quote

flyingleo, there's nothing wrong with having the JOB statement be continued -- that's not the issue. And having SYSPRINT and SYSOUT in a step executing IEFBR14 does absolutely nothing -- it's not wrong, but it's not going to produce any output in any circumstances whatsoever.

HARI: the JCL error implies one of these possibilities: (1) the JOB statement has a syntax error (likely if you're not getting any output at all) -- you need to talk to someone at your site about the job accounting field to ensure it is properly coded, (2) the data set HMADHAV.NOV1.PS1 already exists and the converter / interpreter is failing the job for duplicate data set (every cataloged name must be unique), (3) you've got lower case data in your JCL, (4) you have non-printing characters instead of spaces somewhere in the JCL, (5) the lack of a UNIT and / or VOLSER is causing an allocation failure. There may be other causes but that's all I can think of that would cause the message.

Your best bet would be to run your JCL by someone in your site support group to determine if they see something wrong with it.
Back to top
View user's profile Send private message
venumadhav.hari

New User


Joined: 14 Nov 2007
Posts: 6
Location: Pune

PostPosted: Thu Nov 19, 2009 1:35 am
Reply with quote

Hi,
This is the Job card provided to me by admin.


Code:
//HMADHAV  JOB (12345678),HMADHAV,MSGCLASS=H, 
//        MSGLEVEL=(1,1),CLASS=A,NOTIFY=&SYSUID


I have tried with MSGLEVEL all possible combinations.

Since MSGCLASS=H is sujjested by admin, I don't know what it is. do you suggest any other class?
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: Thu Nov 19, 2009 1:37 am
Reply with quote

No -- message class is determined by each site and what is a good, valid class at one site may not even exist at another site. If they told you to use H, use H. I would try putting the UNIT parameter on the DD statement first; if that doesn't work, contact your site support group.
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: Thu Nov 19, 2009 1:42 am
Reply with quote

Hello,

Quote:
I went to SDSF and Option ST as well as O but i did not find any entry
Did you try H?

Suggest you use the JOB statement from your admin and submit only the JOB, the EXEC statement, and a null (//). This should run successfully.
Back to top
View user's profile Send private message
venumadhav.hari

New User


Joined: 14 Nov 2007
Posts: 6
Location: Pune

PostPosted: Thu Nov 19, 2009 1:47 am
Reply with quote

I am able to se the following messge in system log in SDSF;LOG option


Code:
N 0200000 ADCD     09322 01:57:09.63 JOB29151 00000281  $HASP100 HMADHAVS ON INT
S                                                       HMADHAV                 


I am unable to understand this message.

Any idea what it is?
Back to top
View user's profile Send private message
flyingleo

New User


Joined: 09 Jul 2009
Posts: 14
Location: Stamford, CT

PostPosted: Thu Nov 19, 2009 1:49 am
Reply with quote

i think problem is with MSGCLASS, i tried with MSGCLASS=X at my end its working,
with out unit also DD file will get created.
Back to top
View user's profile Send private message
venumadhav.hari

New User


Joined: 14 Nov 2007
Posts: 6
Location: Pune

PostPosted: Thu Nov 19, 2009 2:00 am
Reply with quote

When I wrote

Code:

//PSCREATE JOB (12345678),HMADHAV,NOTIFY=&SYSUID,
//             CLASS=A,MSGLEVEL=(1,1),MSGCLASS=H 
//STEP1    EXEC PGM=IEFBR14                       
//               


it ran successfully.

Code:

 02.11.29 JOB29154 $HASP165 PSCREATE ENDED AT N1  MAXCC=0 CN(INTERNAL)
 ***                                                                   


Does this mean I have a problem with the DD statement?
Back to top
View user's profile Send private message
flyingleo

New User


Joined: 09 Jul 2009
Posts: 14
Location: Stamford, CT

PostPosted: Thu Nov 19, 2009 2:06 am
Reply with quote

IEFBR14 will run with out dd statment so here u didnt get error, no dataset can be created(since no DD).
if u try anyother utility that will throw error.
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: Thu Nov 19, 2009 2:09 am
Reply with quote

flyingleo, are you running at the same site as Hari? If not, your experience at your site is completely and totally irrelevant since MSGCLASS is a site standard, not an IBM standard. Furthermore, if Hari's site does not have SMS set up to default the UNIT, your experience at your site is again -- totally irrelevant. The SMS set up is site dependent. What works for you may cause JCL errors somewhere else.

Hari, since your last job ran okay, that implies the problem is with your DD01 DD statement -- so you probably need to get with someone at your site to determine the problem. If your TSO user id data set allocation is not SMS-controlled, for example, you would have to specify the UNIT (which is again a site standard and what works at one site will not work somewhere else).
Back to top
View user's profile Send private message
flyingleo

New User


Joined: 09 Jul 2009
Posts: 14
Location: Stamford, CT

PostPosted: Thu Nov 19, 2009 2:12 am
Reply with quote

thanks Robert
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: Thu Nov 19, 2009 2:12 am
Reply with quote

Hello,

Quote:
i think problem is with MSGCLASS, i tried with MSGCLASS=X at my end its working
You need to come to an understanding about things that are "standard" and things that are site-specific. MSGCLASS is site-specific.

Quote:
IEFBR14 will run with out dd statment so here u didnt get error, no dataset can be created(since no DD).
if u try anyother utility that will throw error.
What. . . icon_confused.gif Why would you believe that using some other utility has anything to do with the original problem?

Quote:
Does this mean I have a problem with the DD statement?
Looks like it. . . Try a different dataset name.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Nov 19, 2009 2:53 am
Reply with quote

Code:
N 0200000 ADCD     


I wonder for what organization the posters are working

IIRC the ADCD system has very strict utilization rules...

see ...
dtsc.dfw.ibm.com/MVSDS/'HTTPD2.ADCD.GLOBAL.HTML(READM19S)'
dtsc.dfw.ibm.com/MVSDS/'HTTPD2.ADCD.GLOBAL.HTML(READM110)'
dtsc.dfw.ibm.com/MVSDS/'HTTPD2.ADCD.GLOBAL.HTML(READ110S)'

as a politician said once ..
to think evil is a sin but most of the times You are right
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Nov 19, 2009 7:08 am
Reply with quote

Dick asked:
Quote:
Quote:
I went to SDSF and Option ST as well as O but i did not find any entry

Did you try H?


I did not see a response.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Nov 19, 2009 7:10 am
Reply with quote

Quote:
I am unable to understand this message.


LookAt is your friend:
www.ibm.com/systems/z/os/zos/bkserv/lookat/

Fill in the message number that you want to look up.
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 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 Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top