How to move file record format to a data structure

Posted on 2012-09-13
Last Modified: 2012-09-13
I am trying to move a file record format to a data structure...  Please help!!

Compilation error: " *RNF7416 The types of the right and left hand side do not match" on EVAL statement
FACCDAUD   IF   E           K DISK
D PreviousDS    E DS                  EXTNAME(ACCDAUD) Prefix(Pr)
C                   EVAL      PreviousDs = ACCDAUDREC

Compilation error: "*RNF3804 Name in external description is not renamed" on DataDs definition
FACCDAUD   IF   E           K DISK
D DataDS        E DS                  EXTNAME(ACCDAUD)          
D PreviousDS    E DS                  EXTNAME(ACCDAUD) Prefix(Pr)
C                   EVAL      PreviousDs = DataDs

How can I do this?

Thanks for any help!!
Question by:tozz5
    LVL 34

    Accepted Solution

    Second one is the right way to do it.

    Post the whole compile listing, please - need to see the specific filed that had a problem.  Error indicates there was an attempt to rename a column that failed.

    Seems odd since I don't see code to rename a column in DataDS, but then you didn't provide us with complete source code or a listing.

    If providing a full listing is going to be a problem, create a mini version with just this:

    FACCDAUD ...
    D datads ...
    D previousds ...
    c eval previousds=datads
    c eval *inlr = *on

    And compile it and see if the same problem happens.

    - Gary Patterson
    LVL 34

    Expert Comment

    by:Gary Patterson
    Not sure what I did to help, but glad you got it resolved.

    - Gary

    Author Comment

    your mini version helped me figure out the problem.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now