ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

how to convert decimal number to hex number

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

  • how to convert decimal number to hex number

    Situation:
    As400 need to create files in IFS folder that will PC application pick.
    File name should have 9 digits then _ then 7 digits (123456789_1234567) - this is beyond file name length allowed for IFS.

    We came up with idea that fist 9 digits should be converted to hex number (giving us 8 characters) and to generate special 3 digit number to replace the 7 digits. something like "3B9AC9FF.123".
    7 digits and special 3 digit number will be passed to PC application. that way PC app will search for files with the extension that equals to the extension and convert hex number back to decimal (9 digits number).

    Does anyone know how to convert decimal number to hex number.
    Or maybe how to bypass IFS file lenght restriction of 12?

  • #2
    Re: how to convert decimal number to hex number

    your talking about a limitation on the Old depreciated QDLS file system and not the IFS / ROOT file structure...

    do not use QDLS! Then there is no problem

    jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: how to convert decimal number to hex number

      Thanks Jemie, it worked.
      Rgds,
      Olivera

      Comment

      Working...
      X