ABL Code to Generate a Folder

Yes. I've been beating my head on this one all, so I googled it.

ABL has a command "OS-CREATE-DIR"

According to the OpenEdge Development 4GL Reference (google that and download the PDF), you can give it either a directory name, which it will then add to the current working directory, or use the VALUE paramter and give it an expression.

In the BPM I've been staring at all day I just used:

OS-CREATE-DIR VALUE('[actual path]' + ttProject.ShortChar01).

and it worked great. The value in the UD field was added to the end of a path to create a new folder.

Ernie Lowell
Diba Industries



--- In vantage@yahoogroups.com, "supertico05" wrote:
>
> In there a way to use ABL code to generate a folder?
>
> We want to export data to a CSV file to an specific folder depending on the part number.
> If the folder is not there, then we want to create it.
>
In there a way to use ABL code to generate a folder?

We want to export data to a CSV file to an specific folder depending on the part number.
If the folder is not there, then we want to create it.