Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 2 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us