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

JCL- PREP ERROR- DATASET


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
narayana.kr

New User


Joined: 16 Feb 2010
Posts: 5
Location: Bangalore

PostPosted: Thu Sep 02, 2010 2:04 pm
Reply with quote

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' <GRBILLDEV@TRAVELPORT.COM> -                 
REPLYTO 'SUBSCRIBER BILLING' <GRBILLDEV@TRAVELPORT.COM> -             
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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Sep 02, 2010 2:15 pm
Reply with quote

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 ........................................ icon_cry.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu Sep 02, 2010 7:28 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Sep 02, 2010 7:36 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Sep 02, 2010 7:58 pm
Reply with quote

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
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 -> All Other Mainframe Topics

 


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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:

Back to Top