B062 and B063 Easytrieve error



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

B062 and B063 Easytrieve error

Postby macnano » Tue Nov 04, 2014 8:03 pm

I have an instream easytrieve program with 2 jobs. The first job creates 3 virtual files that are used in the second job to create an output file. In the second job, it matches the 3 files if the key field are the same and then create an output file. There are other logic when it needs to create the output file. The problem is on the second job where I get B062 and B063 error that the output file is unavailable. The File statement is present for this file as well as the DD statement in the JCL.

I also posted this same problem in another topic but was advised to create a new one since that topic was old. My apology, I have not been into this forum for a long time.

      *******B062 FIELD REFERENCED IN UNAVAILABLE FILE - OUTFILE       
      *******B063 FIELD REFERENCED WAS - O-KEY                         
      *******B063 FIELD REFERENCED WAS - O-CRF-KEY                     
      *******B063 FIELD REFERENCED WAS - O-AGENCY                       
      *******B063 FIELD REFERENCED WAS - O-SIT                         
      *******B063 FIELD REFERENCED WAS - O-AGENT                       
      *******B063 FIELD REFERENCED WAS - O-CLASSPLAN                   
      *******B063 FIELD REFERENCED WAS - O-STATUS                       
      *******B063 FIELD REFERENCED WAS - O-POLICY                       
  564 JOB INPUT (TRLR01   KEY   TRLR01-FILE-KEY    +                   
                 TRLR02   KEY   TRLR02-FILE-KEY    +                   
                 TRLR49   KEY   TRLR49-FILE-KEY)                       
                                                                       
  565   IF  MATCHED TRLR01, TRLR02, TRLR49                             
  566       O-POLICY     =  TRLR01-FILE-KEY                             
  567       O-STATUS     =  TRLR01-STAT                                 
  568       O-CLASSPLAN  =  TRLR02-CLASSPLAN                           
  569       O-AGENT      =  TRLR49-AGENT                               
  570       O-SIT        =  TRLR49-AGENT-SIT                           
  571       O-AGENCY     =  TRLR49-AGENCY   
  572       O-CRF-KEY    =  TRLR49-CRF-KEY 
  573       O-KEY        =  TRLR49-KEY       
  574       PUT OUTFILE                     
  575  END-IF
macnano
 
Posts: 9
Joined: Wed Feb 06, 2013 3:07 am
Has thanked: 1 time
Been thanked: 0 time

Re: B062 and B063 Easytrieve error

Postby BillyBoyo » Tue Nov 04, 2014 8:19 pm

The references are in the previous JOB, not in the JOB you are showing us.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: B062 and B063 Easytrieve error

Postby macnano » Tue Nov 04, 2014 11:09 pm

Thanks for your quick response. I was about to post here to disregard this message since I found out the same reason for the error. I discover this when I tried to run the first job to see if I'm creating the 3 files with records and changed the 3 files to non-VIRTUAL files so I can see the records. However, I was still getting the same error. This is where I realized that the first job was initializing the fields of the OUTFILE to spaces.
macnano
 
Posts: 9
Joined: Wed Feb 06, 2013 3:07 am
Has thanked: 1 time
Been thanked: 0 time

Re: B062 and B063 Easytrieve error

Postby BillyBoyo » Tue Nov 04, 2014 11:43 pm

Glad you got it. Thanks for letting us know. The error messages are always after the code which caused the error, not before it. Sometimes there'll be a line number, which would have helped you here :-)

These users thanked the author BillyBoyo for the post:
macnano (Tue Nov 04, 2014 11:47 pm)
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times


Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post