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
 

 

Error in Run 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
ankoo

New User


Joined: 12 Jun 2010
Posts: 31
Location: India

PostPosted: Mon Oct 11, 2010 3:48 pm    Post subject: Error in Run jcl
Reply with quote

Hi

I am having problem with this runjcl

Code:
//RUNJCLAT JOB  'IBMMFS','DEB',CLASS=A,MSGCLASS=4,MSGLEVEL=(1,1),
//           NOTIFY=R9SSHC6
//STEP1   EXEC PGM=STU
//STEPLIB  DD DSN=PWSX.R9SSHC6.LOAD2345,DISP=SHR
//INFILE   DD DSN=PWSX.R9SSHC6.FLAT1,DISP=SHR,
//INFILE   DD DSN=PWSX.R9SSHC6.FLAT2,DISP=SHR
//SYSPRINT DD SYSOUT= *
//OTFILE   DD DSN=PWSX.R9SSHC6.FLAT3,DISP=(NEW,CATLG,DELETE),
//            UNIT=UNIT1,SPACE=(CYL,(1,1),RLSE),
//            DCB=(RECFM=FB,BLKSIZE=800,LRECL=80)
//SYSIN  DD *
/
//

jcl error is comming!
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Oct 11, 2010 3:50 pm    Post subject: Reply to: Run jcl
Reply with quote

Add TYPRUN=SCAN to the Job Card. I suspect your error is the single '/' after SYSIN DD *.

Is there any SYSIN data being passed?

If not, then change SYSIN DD * to SYSIN DD DUMMY and remove the '/' completely.

Then, all will be forgiven and STU will be a much happier program.... icon_rolleyes.gif

Bill
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Mon Oct 11, 2010 3:54 pm    Post subject:
Reply with quote

UNIT=UNIT1

Is that a valid device name?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Oct 11, 2010 4:02 pm    Post subject:
Reply with quote

Quote:
jcl error is comming


when a jcl error occurs, it is listed in you jes3 output.

the comma following the DISP=SHR in the first dd statement for Reference Name INFILE
tells jes to expect continuation parms for the dd statement.
you don't have any, you have a new Reference dd statement.

Quote:
Code:
//INFILE DD DSN=PWSX.R9SSHC6.FLAT1,DISP=SHR,
//INFILE DD DSN=PWSX.R9SSHC6.FLAT2,DISP=SHR

if you are trying to concatenate these 2 files to the dd reference INFILE
try this:

Code:

//INFILE DD DSN=PWSX.R9SSHC6.FLAT1,DISP=SHR
//       DD DSN=PWSX.R9SSHC6.FLAT2,DISP=SHR

since you are obviously too lazy to read either jes messages or
the jcl manual.

you have been posting questions long enough to have learned how to use BBCode
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Oct 11, 2010 4:04 pm    Post subject: Reply to: Run jcl
Reply with quote

You are just wasting everybody' s time
was it so difficult to post the exact message icon_question.gif icon_evil.gif

I would have understood if You had done it on a wednesday/thursday/friday ( psychic days )
on monday You are out of luck

Bill a standalone / is interpreted as data, unlikely to give a jcl error ( just tested with a silly iebgener
Code:
//IEBGENER JOB (UTIL),'IEBGENER',
//             CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1)
//********+****+*******************************************************
//*
//IEB     EXEC PGM=IEBGENER
//SYSPRINT  DD SYSOUT=*
//SYSIN     DD DUMMY
//SYSUT1    DD *,DCB=LRECL=80
/
//SYSUT2    DD SYSOUT=*
/*
//
Back to top
View user's profile Send private message
ankoo

New User


Joined: 12 Jun 2010
Posts: 31
Location: India

PostPosted: Mon Oct 11, 2010 4:26 pm    Post subject:
Reply with quote

Bill changed SYSIN DD * to SYSIN DD DUMMY and removed the '/' completely, but still I am havin the error and DBZ I am having no jes3 and the error in jes2 is-:

STMT NO. MESSAGE
4 IEFC006I POSITIONAL PARAMETERS MUST BE SPECIFIED BEFORE KEYWO
6 IEFC625I INCORRECT USE OF PARENTHESIS IN THE SPACE FIELD

also I used INFILE only once without comma.. Like this-:
//INFILE DD DSN=PWSX.R9SSHC6.FLAT1,DISP=SHR
// DD DSN=PWSX.R9SSHC6.FLAT2,DISP=SHR
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Oct 11, 2010 4:39 pm    Post subject: Reply to: Run jcl
Reply with quote

it would be very nice of You if You posted the exact jcl from the run
using the bbcode tags

if You noticed the messages
Quote:
STMT NO. MESSAGE
4 IEFC006I POSITIONAL PARAMETERS MUST BE SPECIFIED BEFORE KEYWO
6 IEFC625I INCORRECT USE OF PARENTHESIS IN THE SPACE FIELD

reference a jcl statement
since You modified the jcl posted in the starting post we do not know what is going on !
without seeing the real statements You used little can be said
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Oct 11, 2010 4:39 pm    Post subject: Reply to: Run jcl
Reply with quote

Quote:
Bill a standalone / is interpreted as data, unlikely to give a jcl error ( just tested with a silly iebgener

Enrico,

Thanks.

To tell you the truth, I've never knowingly used this.

One of those crazy nuances of IT esoteria. icon_wink.gif

Bill
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Oct 11, 2010 4:46 pm    Post subject:
Reply with quote

ankoo,

you need to post the actual jes output containing the JCL and the messages.
use the [ code ] [ /code ] tags.
Back to top
View user's profile Send private message
ankoo

New User


Joined: 12 Jun 2010
Posts: 31
Location: India

PostPosted: Mon Oct 11, 2010 5:01 pm    Post subject:
Reply with quote

Ok, I am giving the jcl again with code tag
Code:
//RUNJCLAT JOB  'IBMMFS','DEB',CLASS=A,MSGCLASS=4,MSGLEVEL=(1,1),
//           NOTIFY=&SYSUID
//STEP1   EXEC PGM=STU
//STEPLIB DD DSN=PWSX.R9SSHC6.LOAD2345,DISP=SHR
//SYSPRINT DD SYSOUT=*
//INFILE   DD DSN=PWSX.R9SSHC6.FLAT1,DISP=SHR
//         DD DSN=PWSX.R9SSHC6.FLAT2,DISP=SHR
//SYSPRINT DD  SYSOUT=*
//OTFILE   DD DSN=PWSX.R9SSHC6.FLAT3,DISP=(MOD,CATLG,DELETE),
//           UNIT=UNIT1,SPACE=(TRKS,(5,1),RLSE),
//          DCB=(RECFM=FB,BLKSIZE=800,LRECL=80)
//SYSIN DD *
//


Code:
********************************* TOP OF DATA **********************************
 STMT NO. MESSAGE
-
        8 IEF644I INVALID NUMERIC IN THE SPACE FIELD
******************************** BOTTOM OF DATA ********************************
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Oct 11, 2010 5:05 pm    Post subject: Reply to: Run jcl
Reply with quote

Try replacing TRKS with TRK.

You have your code tags out of order.

Oy vey icon_rolleyes.gif
Back to top
View user's profile Send private message
ankoo

New User


Joined: 12 Jun 2010
Posts: 31
Location: India

PostPosted: Mon Oct 11, 2010 5:11 pm    Post subject:
Reply with quote

Code:
//RUNJCLAT JOB  'IBMMFS','DEB',CLASS=A,MSGCLASS=4,MSGLEVEL=(1,1),
//           NOTIFY=&SYSUID
//STEP1   EXEC PGM=STU
//STEPLIB DD DSN=PWSX.R9SSHC6.LOAD2345,DISP=SHR
//SYSPRINT DD SYSOUT=*
//INFILE   DD DSN=PWSX.R9SSHC6.FLAT1,DISP=SHR
//         DD DSN=PWSX.R9SSHC6.FLAT2,DISP=SHR
//SYSPRINT DD  SYSOUT=*
//OTFILE   DD DSN=PWSX.R9SSHC6.FLAT3,DISP=(MOD,CATLG,DELETE),
//         UNIT=UNIT1,SPACE=(TRKS,(5,1),RLSE),
//         DCB=(RECFM=FB,BLKSIZE=800,LRECL=80)
//SYSIN DD *
//

Code:
********************************* TOP OF DATA **********************************
 STMT NO. MESSAGE
-
        8 IEF644I INVALID NUMERIC IN THE SPACE FIELD
******************************** BOTTOM OF DATA ********************************
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: Mon Oct 11, 2010 5:12 pm    Post subject:
Reply with quote

Code:
[code] your
code
goes here [/code]
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Oct 11, 2010 5:26 pm    Post subject: Reply to: Run jcl
Reply with quote

did You ever think to look at the manuals Yourself
at :
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2M891/SPTM010839
and think about the message meaning!
proceedig afterwards to
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B680/CCONTENTS?SHELF=IEA2BK91&DN=SA22-7597-12&DT=20080604022956
and to
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B680/12.0?SHELF=IEA2BK91&DT=20080604022956
and to
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B680/12.59?SHELF=IEA2BK91&DT=20080604022956&CASE=
and eventually to
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B680/12.59.2.1?SHELF=IEA2BK91&DT=20080604022956&CASE=

to understand byYourself why the space construct contains invalid parameters/keywords/<numerics> icon_question.gif icon_evil.gif
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: Mon Oct 11, 2010 9:38 pm    Post subject:
Reply with quote

Hello,

Quote:
SPACE=(TRKS,(5,1),RLSE),
You do now realize that this cannot work. . . Either a numeric or a CYL or TRK must be used.

As you did not specify CYL or TRK, the value is an invalid numeric. . .

You have to use what is supported by the system - and when something else is used, you have to deal with the interpretation of the system . . .
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 10:53 am    Post subject:
Reply with quote

Quote:
UNIT=UNIT1,SPACE=(CYL,(1,1),RLSE),


I think this is correct now.But still its not working.
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 10:58 am    Post subject:
Reply with quote

Even I changed from cyls to TRKS

Code:
//RUNJCLAT JOB  'IBMMFS','DEB',CLASS=A,MSGCLASS=4,MSGLEVEL=(1,1),
//           NOTIFY=R9SSHC6
//STEP1   EXEC PGM=STU
//STEPLIB DD DSN=PWSX.R9SSHC6.LOAD2345,DISP=SHR
//INFILE   DD DSN=PWSX.R9SSHC6.FLAT1,DISP=SHR,
//         DD DSN=PWSX.R9SSHC6.FLAT2,DISP=SHR
//SYSPRINT DD SYSOUT= *
//OTFILE   DD DSN=PWSX.R9SSHC6.FLAT3,DISP=(MOD,CATLG,DELETE),
//            UNIT=UNIT1,SPACE=(TRK,(5,1),RLSE),
//           DCB=(RECFM=FB,BLKSIZE=800,LRECL=80)
//SYSIN  DD *
/
//


After submission the JCL error message is comming!

Message is
Code:
********************************* TOP OF DATA **********************************
 STMT NO. MESSAGE
        4 IEFC006I POSITIONAL PARAMETERS MUST BE SPECIFIED BEFORE KEYWORD PARAME
******************************** BOTTOM OF DATA ********************************
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 11:11 am    Post subject:
Reply with quote

Also DBZ if I am using this
Code:
//INFILE   DD DSN=PWSX.R9SSHC6.FLAT1,DISP=SHR
//         DD DSN=PWSX.R9SSHC6.FLAT2,DISP=SHR

i.e. without comma I am getting an the following abend
Code:
 00.35.59 JOB09512 $HASP165 RUNJCLAT ENDED AT H068NJE - ABENDED S000 U4038 CN(IN
TERNAL)

If I use comma like this
Code:
//INFILE   DD DSN=PWSX.R9SSHC6.FLAT1,DISP=SHR,
//         DD DSN=PWSX.R9SSHC6.FLAT2,DISP=SHR

I an not getting an abend
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Oct 12, 2010 11:35 am    Post subject: Reply to: Error in Run jcl
Reply with quote

the one without the comma is the right one
and is the proper way to concatenate two datasets

did You care to look at the manuals for the meaning of the abend ?
certainly not, is faster to whine on the forum and wait for the solution

as a hint check that the two datasets have the same dcb the LRECL should be the same

the one with the comma is wrong anyway
post the sysout so that we can see how it was interpreted

if You are not willing to read the manuals yourself You should meditate about a career change,
IT is not the right one for You

and no... urgency is not an excuse
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 12:33 pm    Post subject:
Reply with quote

Quote:
as a hint check that the two datasets have the same dcb the LRECL should be the same

I have checked the LRECL is the same as I used the Create command.

Also the SYSOUT
Code:
********************************* TOP OF DATA **********************************
IGZ0035S There was an unsuccessful OPEN or CLOSE of file FLAT1 in program STU at
         FILE STATUS nor an ERROR declarative were specified. The status code wa
         From compile unit STU at entry point STU at compile unit offset +000004
         address 1CD009BE.
******************************** BOTTOM OF DATA ********************************
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 S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm
No new posts IDMS/DC-COBOL program - SNAP error wh... rakeshsekar1987 IDMS/ADSO 5 Tue Sep 13, 2016 8:28 pm


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