×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Within an RPG program I am trying to copy a i5 file to the IFS. This same program
writes i5 information to the file. The file gets created in /tmp but the information
doesn't get written. This is my code:
D Path s 11 Inz('/tmp/')
C Eval CMDA = 'CPYTOIMPF ' +
C 'FROMFILE(ENVELOPE) '+
C 'TOSTMF('''+
C %Trim(Path)+
C %TRIM(LastFirst)+
C '.xml'') '+
C 'MBROPT(*REPLACE) '+
C 'TOCCSID(437) '+
C 'RCDDLM(*CRLF) '+
C 'DTAFMT(*FIXED)'
* Copy XML file to /tmp
C MOVEL CmdA Command
C CALLP(e) QCMDEXC(CmdA :
C %Len(%Trim(CmdA)))
* Change Authorty on XML file
C Eval CMDA = 'CHGAUT ' +
C 'OBJ('''+
C %Trim(Path)+
C %TRIM(LastFirst)+
C '.xml'') '+
C 'USER(*PUBLIC) '+
C 'DTAAUT(*RWX)'
This is the authority I have for the /tmp folder
Work with Authority
Object . . . . . . . . . . . . : /tmp
Owner . . . . . . . . . . . . : QSYS
Primary group . . . . . . . . : *NONE
Authorization list . . . . . . : *NONE
Data -------------Data Authorities-------------
Opt User Authority Objopr Read Add Update Delete Execute
*PUBLIC *RWX X X X X X X
QSYS *RWX X X X X X X
This is the authority on the i5 file that is written to and copied from in this program:
Display Object Authority
Object . . . . . . . : ENVELOPE Owner . . . . . . . : QPGMR
Library . . . . . : KDICHANGES Primary group . . . : *NONE
Object type . . . . : *FILE
Object secured by authorization list . . . . . . . . . . . . : *NONE
Object
User Group Authority
QPGMR *ALL
*PUBLIC *ALL
Does anyone have any idea why the data wouldn't be written to the file?
Thanks,
Gary Kuznitz
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.