|
View previous topic :: View next topic
|
| Author |
Message |
narayana.kr
New User
Joined: 16 Feb 2010 Posts: 5 Location: Bangalore
|
|
|
|
I used sysout of sort step in another step as input dataset along with some other input files.
When i did PREP(Syntax check), I got the below message
"JCPA JCP0451E DATASET 'FBTA.FFH452A.OVERD.SMOSORT' IS NOT CATALOGED"
But even the prep error is there, running successfully.
IF it is already existing Dataset, the error is not comming.
Please help me to avouid the above PREP error.
I have pasted the JCL below
| Code: |
//***********************************************************
//* J016 - SORTS THE SMO CODE FROM THE HEADER RECORD.
//***********************************************************
//J016 EXEC PGM=SORT
//*
//SORTIN DD DSN=INPUT DATASET,DISP=SHR
//*
//SORTOUT DD DSN=FBTA.FFH452A.OVERD.SMOSORT,
// DCB=(LRECL=80,RECFM=FB,DSORG=PS),
// DISP=(NEW,CATLG,DELETE)
//
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(2,4,CH,EQ,C'SMO:')
OUTREC FIELDS=(1:6,60,C''' -',80:C' ')
/*
//*
//*
//J040 EXEC PGM=IKJEFT1B
//SYSPROC DD DISP=SHR,DSN=SYS2.LOCAL.CMDPROC
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//PRINTER DD SYSOUT=*
//MSGTEXT DD *
FA ACCRUAL OVERRIDE REPORT HAS BEEN CREATED AND ATTACHED.
(CREATED BY OS/390 JOB FFH452A.)
//SYSIN DD DUMMY
//SYSTSIN DD DSN=TSOPM.BT000.JCL.EMAIL.ADDRS(NARAYANA),DISP=SHR
// DD DSN=TSOPM.FH000.JCL.EMAIL.SUBJECT(FFH452NE),DISP=SHR
// DD DSN=FBTA.FFH452A.OVERD.SMOSORT,DISP=(MOD,DELETE,DELETE)
// DD *
FROM 'SUBSCRIBER BILLING' <[email protected]> -
REPLYTO 'SUBSCRIBER BILLING' <[email protected]> -
FILEDD (FAOVRD) -
REPORT (CSV) -
MSGDD MSGTEXT
//*
//FAOVRD DD DSN=DATASET,DISP=SHR |
Please learn to use the code tags to present your JCL more clearly
| Code: |
| [code] your code [/code] |
|
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
If the job runs OK even with a prep error what's the problem.
I suggest that you talk to the people responsible for the installation and customisation of this product and point out that the setup may need changing as it issues missing dataset errors for datasets created in the job stream.
Anyway, if you need a JCL scanner, well ........................................  |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
| You've not shown where the mesasge was flagged. Most possibly, that should be the second place(at least) in your JCL, where you refer to the same DSN again while data-set is not yet cataloged. JEM (other JCL syntax check tool) used to flag such an error - please check if that helps you in your curiocity. |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
| Quote: |
| DD DSN=FBTA.FFH452A.OVERD.SMOSORT,DISP=(MOD,DELETE,DELETE) |
That DISP looks a little odd to me for an input dataset as part of concatenation. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
nice catch Craig,
I don't spend much time looking too deep wit JCL check/scan errors.
you are correct, a simple DISP=SHR is appropriate.
or, if it has to be deleted, then OLD,DELETE,DELETE
but better an IEFBR14 after the sort step with the old,del,del.
sorta stupid to delete an input dataset with a DISP during the same step
incase of ABEND. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|