PeopleSoft

FTP Class in PeopleSoft

Here’s a class I created to allow FTP from within PeopleSoft. Use it at your own risk:

Continue reading

PeopleSoft

Using Rept to pad zeroes

I was creating a PeopleCode script to populate test persons in my database. I needed the persons to have IDs that would be padded with 0s where necessary. For example:

Solution: 1. Determine how many people you are creating (eg. 100). 2. Find the number of digits of that number (eg. 100 has 3 digits) 3. Subtract that from the number of the person that you’re currently trying to create an id for (eg.…

Continue reading

PeopleSoft

FindFiles function does not return a sorted array

I had a series of files with the following names: JM001.pdf JM002.pdf JM003.pdf .. JM100.pdf JM101.pdf One silly assumption that I made was that the FindFiles PeopleCode function returned a sorted array of strings. While this seemed to be the case on Windows environments, it was not the case on UNIX systems. Fortunately all I had to do was sort the array in ascending order after the call to FindFiles:

Continue reading