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
 

 

JCL- PREP ERROR- DATASET

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: JCL- PREP ERROR- DATASET
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: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 02, 2010 2:15 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Sep 02, 2010 7:28 pm    Post subject:
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Thu Sep 02, 2010 7:58 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am


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