+ Reply to Thread
Results 1 to 3 of 3

Thread: File Name using INFDS(SCREEN) - ILE/RPG IV

  1. #1

    Default File Name using INFDS(SCREEN) - ILE/RPG IV

    Leif, you can get the 10-byte name of the real file in positions 83-92. This name might be different from the internal (F-spec) name if you have an override. After an error on a file, you can get its 10-byte internal name from the PSDS in positions 175-184. Barbara "Leif R. Thomas" wrote: > > I want to use the internal file feedback information to obtain a > display file name. (INFDS) > > Scenario: > (I will place my code at the bottom of the message.) > > Display file name is 10 characters long. > This works correctly with the file name field defined as 8A - the last > two characters of the 10 char file name are truncated. When the field > is defined as a 10A - the RPGLE program will not compile. I am finding > that the file name is in the first 8 positions of the data structure. > Is this true? and is there a work around besides hard boding the > screen name on the display or reaming the DSPFD name? > > Thanks for any suggestions you may have. > Lief R. Thomas > Cornerstone Solutions, In. > > My Code is as follows: > > QDDSSRC - DSPFD > > A DSPFD 10A I 2 61 > > QRPGLESRC - RPGLE > > FAGDISINPUTCF E WORKSTN INFDS(SCREEN) > > D SCREEN DS > D DSPF *FILE > > Compile Error Message: > > 000001=OHEADER > 000002=O USRNAM 30A CHAR 30 > 000003=O DSPF 40A CHAR 10 > ======> aaaaa > *RNF6033 30 a 6000003 Length of externally-described field is not the > same as a prior definition; specification is ignored

  2. #2
    Guest.Visitor Guest

    Default File Name using INFDS(SCREEN) - ILE/RPG IV

    I want to use the internal file feedback information to obtain a display file name. (INFDS) Scenario: (I will place my code at the bottom of the message.) Display file name is 10 characters long. This works correctly with the file name field defined as 8A - the last two characters of the 10 char file name are truncated. When the field is defined as a 10A - the RPGLE program will not compile. I am finding that the file name is in the first 8 positions of the data structure. Is this true? and is there a work around besides hard boding the screen name on the display or reaming the DSPFD name? Thanks for any suggestions you may have. Lief R. Thomas Cornerstone Solutions, In. My Code is as follows: QDDSSRC - DSPFD A DSPFD 10A I 2 61 QRPGLESRC - RPGLE FAGDISINPUTCF E WORKSTN INFDS(SCREEN) D SCREEN DS D DSPF *FILE Compile Error Message: 000001=OHEADER 000002=O USRNAM 30A CHAR 30 000003=O DSPF 40A CHAR 10 ======> aaaaa *RNF6033 30 a 6000003 Length of externally-described field is not the same as a prior definition; specification is ignored

  3. #3
    Guest.Visitor Guest

    Default File Name using INFDS(SCREEN) - ILE/RPG IV


+ Reply to Thread

Similar Threads

  1. INFDS
    By Guest.Visitor in forum RPG
    Replies: 1
    Last Post: 10-31-2003, 02:40 AM
  2. INFDS
    By Guest.Visitor in forum General
    Replies: 2
    Last Post: 07-18-2003, 11:08 AM
  3. WANTED: INFDS example
    By Guest.Visitor in forum Programming
    Replies: 4
    Last Post: 07-19-2001, 11:06 AM
  4. Does anyone know how to use INFDS to read source for documentation?
    By Guest.Visitor in forum Application Software
    Replies: 7
    Last Post: 11-30-2000, 05:12 AM
  5. INFDS Row position of cursor..???
    By Guest.Visitor in forum Programming
    Replies: 8
    Last Post: 08-10-2000, 07:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts