AS/400: Error while trying to display file in module

342605 pts.
Tags:
AS/400
ILE
I've recently been doing some research on trying to create modules and service programs in ILE, but I'm having trouble finding information on defining a display window (prompt screen) inside a module. Here's the code I've tried (I keep getting an error that the RECNO parameter (RNN here) is not defined). Could someone tell me what I'm doing wrong? Thanks!
    H NOMAIN                                                
    FWDWFACV   CF   E             WORKSTN                   
    F                                     SFILE(FACSFL:RRN) 
    FZMFL01    IF   E           K DISK                        
    D/COPY CUSSRCV6/QCPYSRC,TOOLS                           
    P WDWFAC          B                   EXPORT            
    DWDWFAC           PI                                    
    DWFAC                            2A                     
    DWFDESC                         20A   options(*nopass)  
    D RRN             S              3S 0 inz(0)            
    D WKFLAG          S              1S 0                   
    /free                                                   

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I don't have a similar example available, so I can't run a test any time soon. First thing I would try is to move the RRN declaration outside of the P-spec for WDWFAC. When it's inside, it's going to be local to the procedure. Outside, it should be available to the F-spec. -- Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following