PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

SamDestroy

We have an Application Engine PeopleCode that creates and writes a new file using SetFileLayout method and WriteRecord methods. Here's some pseudo code above:

Local File &MYFILE;

Local Rowset &FILEROWSET, &RS_VCA, &RS_VLI, &RS_VDI, &RS_VRE, &RS;

Local string &FILE;

&FILE = GetURL(URL.MY_URL) | "FILENAME.txt";

&MYFILE = GetFile(&FILE, "W", %FilePath_Absolute);

If &MYFILE.IsOpen Then

   If &MYFILE.SetFileLayout(FileLayout.MY_FILELAYOUT) Then

      &FILEROWSET = &MYFILE.CreateRowset();

      &Rec_MY_RECORD_1 = CreateRecord(Record.MY_RECORD_1);

      &Rec_MY_RECORD_2 = CreateRecord(Record.MY_RECORD_2);

      &SQL_SELECT_MY_RECORD_1 = CreateSQL("%Selectall(:1)", &MY_RECORD_1);

      While &SQL_SELECT_MY_RECORD_1.Fetch(&Rec_MY_RECORD_1)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center