Hi guys,
Can you help me with some tips regarding the creation of a streamfile in a IFS folder with codepage 819? I made a program who generate XML files as streamfiles with extension .xml in a folder in IFS, using C API's - open, write, close.
But I don't have the right codepage -> I saw that I have 297 as CCSID file and the same value for Job CCSID ( - this informations are available with WRKLNK -> option 5 on my file -> F15 Services).
How I must to declare the open statement to can use the mode: 819 and to have a codepage 819?
Now I have like this:
* open()
D open PR 10I 0 ExtProc('open')
D path * value options(*string)
D openflags 10I 0 value
D mode 10U 0 value options(*nopass)
D ccsid 10U 0 value options(*nopass)
D* txtcreatid 10U 0 value options(*nopass)
fd = open('myfolder/ifsfile.xml'
: O_CREAT+O_TRUNC+O_WRONLY: (6*64) + (6*8) + (4));
-> I tried to change with:
fd = open('/ifstest/somefile.txt': O_CREAT+O_WRONLY+O_CODEPAGE: mode: 819) But I have a compile error for the "mode"- like not declared: RNF7030 30 The name or indicator mode is not defined.
Can you help me with some tips regarding the creation of a streamfile in a IFS folder with codepage 819? I made a program who generate XML files as streamfiles with extension .xml in a folder in IFS, using C API's - open, write, close.
But I don't have the right codepage -> I saw that I have 297 as CCSID file and the same value for Job CCSID ( - this informations are available with WRKLNK -> option 5 on my file -> F15 Services).
How I must to declare the open statement to can use the mode: 819 and to have a codepage 819?
Now I have like this:
* open()
D open PR 10I 0 ExtProc('open')
D path * value options(*string)
D openflags 10I 0 value
D mode 10U 0 value options(*nopass)
D ccsid 10U 0 value options(*nopass)
D* txtcreatid 10U 0 value options(*nopass)
fd = open('myfolder/ifsfile.xml'
: O_CREAT+O_TRUNC+O_WRONLY: (6*64) + (6*8) + (4));
-> I tried to change with:
fd = open('/ifstest/somefile.txt': O_CREAT+O_WRONLY+O_CODEPAGE: mode: 819) But I have a compile error for the "mode"- like not declared: RNF7030 30 The name or indicator mode is not defined.
Comment