B054 Error in Easytrieve



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

Re: B054 Error in Easytrieve

Postby dick scherrer » Mon Nov 03, 2008 6:28 am

Hello,

From this most recent post, the problem is between your code and your jcl. The error appears to happen before the code even begins to execute. What is in the SYSPRINT after the source you posted? What info (after the source) was printed by Easytrieve?

As i mentioned earlier, i am able to use your file definition and PUT successfullt into the file.
//FILENM   DD DSN=&&MYNM,                           
//            UNIT=SYSDA,                         
//            SPACE=(TRK,(1,10),RLSE),             
//            DCB=(RECFM=FB,LRECL=27,BLKSIZE=2700),
//            DISP=(,PASS)                         


I suspect that what you have posted is not complete or has somehow been changed from what you are running on your system.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: B054 Error in Easytrieve

Postby tavisha » Mon Nov 03, 2008 7:07 am

Hi,

Well I get this error from easytrieve after my source
OPTIONS FOR THIS RUN - ABEXIT SNAP DEBUG (STATE FLDCHK NOXREF) LIST (PARM FILE) PRESIZE 512
SORT (DEVICE SYSDA ALTSEQ NO MSG DEFAULT MEMORY MAX WORK 3) VFM ( 64)
DB2SSID('DB2 ')
*******A014 PREMATURE TERMINATION DUE TO PREVIOUS ERROR(S)
tavisha
 
Posts: 11
Joined: Sun Nov 02, 2008 6:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: B054 Error in Easytrieve

Postby dick scherrer » Mon Nov 03, 2008 7:18 am

Hello,

The a014 simply says there there was something wrong earlier - nothing new to learn there.

It is time to post the entire SYSPRINT. . . Posting the expanded jcl could also help. If you want to swap out the "real" dataset names, that shouldn't be a problem, but everything else needs to be intact.

From the bits and pieces posted so far, the error is not "jumping out" :)

Did you try using the dd i was able to run with?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: B054 Error in Easytrieve

Postby tavisha » Mon Nov 03, 2008 7:55 am

I tried with your dd statement as well.It also didn't work.

I am attaching the expanded Jcl as well as the sysprint.

Let me know if u get nything.

Thanks for your prompt reply
You do not have the required permissions to view the files attached to this post.
tavisha
 
Posts: 11
Joined: Sun Nov 02, 2008 6:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: B054 Error in Easytrieve

Postby dick scherrer » Mon Nov 03, 2008 8:30 am

Hello,

Your jcl has a different lrecl than the file definition. . .

12 FILE TEMP FB(27 0)

        31 //TEMP     DD DSN=xxx.FINALS.FILEMAIN,   
           //            UNIT=SYSWK,
           //            SPACE=(TRK,(100,100),RLSE),
           //            DCB=(RECFM=FB,LRECL=28,BLKSIZE=0),
           //            DISP=(NEW,CATLG)
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: B054 Error in Easytrieve

Postby tavisha » Mon Nov 03, 2008 9:00 am

Hi

I corrected it but m still getting the same error. :(
tavisha
 
Posts: 11
Joined: Sun Nov 02, 2008 6:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: B054 Error in Easytrieve

Postby dick scherrer » Mon Nov 03, 2008 9:17 am

Hello,

Suggest you create a new program that contains only this file definition, an "input null", and a PUT to this file (initial values or some literals). If you can successfully write the file, it will be a matter of isolating the problem in the largeer set of code. If the PUT is not successful, it will be far easier to diagnose in the little test program.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: B054 Error in Easytrieve

Postby tavisha » Tue Nov 04, 2008 12:06 am

Hi

Well I think we can't use a file as input as well as an output in a single Job step.

Bcoz when I m just doing GET FILE its working fine.I commented the PUT FILE part.

I think I will need to do smethng else in order to declare the file as I/O.

Do u have any suggestions.
tavisha
 
Posts: 11
Joined: Sun Nov 02, 2008 6:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: B054 Error in Easytrieve

Postby dick scherrer » Tue Nov 04, 2008 1:23 am

Hello,

Well I think we can't use a file as input as well as an output in a single Job step.
I think so too. . . I tried to alternate the GET and the PUT and which ever was encountered second threw the error.

You might try to sort the file after you finish writing into it and creating a new sorted fle to read back into the code.
SORT input-file-name TO sorted-file-name +
USING (sort-key-field-name [D] ...)
There's more in the manual.

Otherwise, the code may need to be split into 2 processes.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Previous

Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post