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
 
B059 PREMATURE END OF FILE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
mvmadhuvenkatesh

New User


Joined: 18 Jun 2018
Posts: 3
Location: India

PostPosted: Tue Jun 19, 2018 10:50 am    Post subject: B059 PREMATURE END OF FILE
Reply with quote

Hi,

I have an easy treive program running successfully for many years now in prod.
i pulled the easytrieve program to a changeman package compiled it and tried executing with RUN JCL i have from prod. it started giving PREMATURE END OF FILE .

At first i got a S30E abend.. i tried solving it looking at CA help site.

title: ABEND S30E AFTER RELEASE UPGRADE
Advantage CA-Easytrieve Plus is not downwardly compatible. When you compile
and linkedit an Advantage CA-Easytrieve program, you can execute it with
the same release level or higher. If you are getting an S30E abend,
you most likely have compiled and link edited the Advantage CA-Easytrieve
program using Advantage CA-Easytrieve Plus 6.4, but are executing that
program with Advantage CA-Easytrieve Plus 6.3 or lower.
This has never been supported by Advantage CA-Easytrieve, but now that
Advantage CA-Easytrieve Plus 6.4 is 31-bit, the S30E abend always occurs.

After solving this i get

B059 PREMATURE END OF FILE
An end-of-file was detected (on the source program input file) before CA-Easytrieve Plus could identify a valid program. Verify that the JCL statements that associate a data set with SYSIN (SYSIPT) are valid. This message is generated when a null source program is encountered.
Do I have to include any more load libraries in the jcl?


JCL i have used is below
Code:

//S100   EXEC PGM=PXXXXX,                         
//            REGION=4096K,                         
//            COND=(0,LT)                           
//STEPLIB  DD DSN=P123L.BATCH.LOAD,                 
//            DISP=SHR                             
//            DD DSN=SYS1.EASYPLUS.LOADLIB,DISP=SHR
                                             
//QT001INN DD DSN=P123P.QT02A060.DDD.XML.RAP2,     
//            DISP=(OLD,KEEP,KEEP)                 
//*                                                 
//QP001UT  DD DSN=123P.QP02A100.DDD.DL286EF,     
//            DISP=(NEW,CATLG,DELETE),             
//            SPACE=(9072,(700,100),RLSE),         
//            DCB=(RECFM=FBA,LRECL=81,BLKSIZE=9072)
//SORTWK01 DD SPACE=(CYL,1)                   
//SORTWK02 DD SPACE=(CYL,1)                   
//SORTWK03 DD SPACE=(CYL,1)                   
//EZTVFM   DD SPACE=(9074,(5000,200))         
//SYSPRINT DD SYSOUT=*                       
//SYSOUT   DD SYSOUT=*                       
//SYSOUTS  DD SYSOUT=*                       
//ABNLNODP DD DUMMY                           
//SYSUDUMP DD SYSOUT=E                       
//SYSIN    DD DUMMY                           
//*                                           


The above jcl has been working ok in prod . when i did a fresh recompile of the program from changeman package, the same jcl gives errors.

I have tried searching the post in CA products forum here, but they are not matching my requirements.
Back to top
View user's profile Send private message

expat

Global Moderator


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

PostPosted: Tue Jun 19, 2018 11:32 am    Post subject:
Reply with quote

Please learn to use the code tags - shown below - very quickly

Code:
 [code] your code in here [/code]



Is the load module in either the STEPLIB or the system defined libraries.
Back to top
View user's profile Send private message
mvmadhuvenkatesh

New User


Joined: 18 Jun 2018
Posts: 3
Location: India

PostPosted: Tue Jun 19, 2018 11:56 am    Post subject:
Reply with quote

The load module for my easytrieve program is in STEPLIB
P123L.BATCH.LOAD. SYS1.EASYPLUS.LOADLIB was there from production.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2090
Location: UK

PostPosted: Tue Jun 19, 2018 2:10 pm    Post subject: Reply to: B059 PREMATURE END OF FILE
Reply with quote

Why do you have a blank line in your JCL? thsat would generate a //SYSIN DD * which would override the one later on.
Back to top
View user's profile Send private message
mvmadhuvenkatesh

New User


Joined: 18 Jun 2018
Posts: 3
Location: India

PostPosted: Tue Jun 19, 2018 2:18 pm    Post subject:
Reply with quote

that is only a typo error in the code pasted.. it is not a blank.. but a comment
Code:
//S100   EXEC PGM=PXXXXX,                         
//            REGION=4096K,                         
//            COND=(0,LT)                           
//STEPLIB  DD DSN=P123L.BATCH.LOAD,                 
//            DISP=SHR                             
//            DD DSN=SYS1.EASYPLUS.LOADLIB,DISP=SHR
//*                                           
//QT001INN DD DSN=P123P.QT02A060.DDD.XML.RAP2,     
//            DISP=(OLD,KEEP,KEEP)                 
//*                                                 
//QP001UT  DD DSN=123P.QP02A100.DDD.DL286EF,     
//            DISP=(NEW,CATLG,DELETE),             
//            SPACE=(9072,(700,100),RLSE),         
//            DCB=(RECFM=FBA,LRECL=81,BLKSIZE=9072)
//SORTWK01 DD SPACE=(CYL,1)                   
//SORTWK02 DD SPACE=(CYL,1)                   
//SORTWK03 DD SPACE=(CYL,1)                   
//EZTVFM   DD SPACE=(9074,(5000,200))         
//SYSPRINT DD SYSOUT=*                       
//SYSOUT   DD SYSOUT=*                       
//SYSOUTS  DD SYSOUT=*                       
//ABNLNODP DD DUMMY                           
//SYSUDUMP DD SYSOUT=E                       
//SYSIN    DD DUMMY                           
//*   
[/code]
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Wed Jun 20, 2018 1:15 pm    Post subject:
Reply with quote

Show the output of your compile and link run.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISPF 3.4 edit of a ps file, disp use... Carrie Da Silva TSO/ISPF 3 Fri Sep 21, 2018 3:01 am
No new posts ICETOOL - Finding keys within a file nartcr DFSORT/ICETOOL 10 Mon Sep 17, 2018 6:39 am
No new posts Remove selected duplicate rows from t... hnharish DFSORT/ICETOOL 3 Wed Sep 05, 2018 3:11 am
No new posts Splitting one record in a file to 10 ... mf_123 DFSORT/ICETOOL 9 Tue Aug 21, 2018 8:51 pm
No new posts CLOB Column data to External File usi... lalitmehta12 DB2 9 Tue Aug 21, 2018 7:22 pm

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