ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Logical file SST in a numeric field

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

  • Logical file SST in a numeric field

    Can i do-it?​
    Attached Files

  • #2
    You can substring a numeric field if it is defined as zoned.

    Comment


    • #3
      Take a look at this regarding the conversion from packed to decimal.
      For a physical file, you use this position to specify the data type of the field within the database. You specify data type in a logical file only to override or change the data type of the corresponding field in the physical file on which this logical file is based.


      As I see it if the field NCPONUMT is defined as packed in the physical file then you
      could define it in the logical file with data type "S" for zoned and conversion happens automagically.
      Then it can be used in the SST keyword

      Comment

      Working...
      X