Salesforce

Update the IFS Stream File (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Update the IFS Stream File (Magic xpa 3.x)

Note: Make sure the connection to IBM i is established before proceeding.

Use this function to update a stream file located in the IFS directory. The syntax of the UDP is Invoke UDP ('MGEAC32.PUTSTMF', A, B, C, D, E, F)

Where:

  • A - A string variable representing the system name.

  • B - A string variable representing the temporary table library location.

  • C - A string variable representing the temporary table name, which contains the text for the stream file update.

  • D - A string variable representing a stream file name to be updated, including the full directory path of the stream file location.

  • E - A string variable representing the Character Code Page (CCSID) of the stream file. The default value is the stream file's CCSID code.

  • F - A numeric variable representing one of the following return codes, 0=successful or -1=Error.

The following example updates the stream file sample.txt in the /home directory with CCSID=850 (ASCII code page):

Invoke UDP ('MGEAC32.PUTSTMF', SystemName, 'QTEMP', 'F255',/home/sample.txt', '850', retcode)

Related Topics

Reference
Attachment 
Attachment