Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

what is the problem with this JCL?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: what is the problem with this JCL?
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

Senior Member


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

PostPosted: Wed Nov 18, 2009 8:23 pm    Post subject: Reply to: what is the problem with this JCL?
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: 7914
Location: Bellevue, IA

PostPosted: Wed Nov 18, 2009 8:28 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Nov 18, 2009 8:41 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Nov 18, 2009 8:45 pm    Post subject:
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

Site Director


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

PostPosted: Wed Nov 18, 2009 11:14 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Nov 19, 2009 1:11 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Nov 19, 2009 1:34 am    Post subject:
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: 7914
Location: Bellevue, IA

PostPosted: Thu Nov 19, 2009 1:34 am    Post subject:
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    Post subject:
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: 7914
Location: Bellevue, IA

PostPosted: Thu Nov 19, 2009 1:37 am    Post subject:
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

Site Director


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

PostPosted: Thu Nov 19, 2009 1:42 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 7914
Location: Bellevue, IA

PostPosted: Thu Nov 19, 2009 2:09 am    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm
No new posts TXT2PDF problem - printing @ in PDF vipul65 All Other Mainframe Topics 9 Thu Aug 25, 2016 12:48 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us