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?
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?



Comment