ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Using EXTFILE, EXTDESC together

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using EXTFILE, EXTDESC together

    I have a program that has the following code in the F specs
    Click image for larger version

Name:	image.png
Views:	128
Size:	30.6 KB
ID:	159116

    Later on in the program is this
    Click image for larger version

Name:	image.png
Views:	116
Size:	49.9 KB
ID:	159117

    ​File Library Device Format Type Count Opt Shr-Nbr Record
    PHYOTH01 PMCLIBPRD PHYOTH01 PHY 0 IO NO
    PHYOTH16 PMCLIBPRD PHYOTH16 OTH01 PHY 1 IO NO 1​​​​

    when I put it in debug PDC01 is 0, although PDC01 actually contains 1 in the file. LOC is 16
    Click image for larger version

Name:	image.png
Views:	118
Size:	64.1 KB
ID:	159118

    Any ideas why PDC01 isn't = 1 when debugging or how I can make this work

  • #2
    Don't forget that the PREFIX keyword modified the name of the file's fields in your program.

    Comment


    • #3
      Originally posted by UserName10 View Post
      Don't forget that the PREFIX keyword modified the name of the file's fields in your program.
      yes, that was it. I don't know how I overlooked that.

      Comment

      Working...
      X