Page 2 of 2

Re: B054 Error in Easytrieve

PostPosted: Mon Nov 03, 2008 6:28 am
by dick scherrer
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.

Re: B054 Error in Easytrieve

PostPosted: Mon Nov 03, 2008 7:07 am
by tavisha
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)

Re: B054 Error in Easytrieve

PostPosted: Mon Nov 03, 2008 7:18 am
by dick scherrer
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?

Re: B054 Error in Easytrieve

PostPosted: Mon Nov 03, 2008 7:55 am
by tavisha
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

Re: B054 Error in Easytrieve

PostPosted: Mon Nov 03, 2008 8:30 am
by dick scherrer
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)

Re: B054 Error in Easytrieve

PostPosted: Mon Nov 03, 2008 9:00 am
by tavisha
Hi

I corrected it but m still getting the same error. :(

Re: B054 Error in Easytrieve

PostPosted: Mon Nov 03, 2008 9:17 am
by dick scherrer
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.

Re: B054 Error in Easytrieve

PostPosted: Tue Nov 04, 2008 12:06 am
by tavisha
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.

Re: B054 Error in Easytrieve

PostPosted: Tue Nov 04, 2008 1:23 am
by dick scherrer
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.