Hi All,
I am working on Cobol Ver 5.1.4.0 , Linux ( 2.6.18-194.el5 x86_64 x86_64 x86_64 GNU/Linux ).
Program with following code was compiled successfully, but when execute command 'open output xml-stream', the file-status value is set as "000000001- " . Please if anyone can help me with the settings required, for this code to work.
********************** Code *********************
$set p(prexml) o(dth1.cp) endp noibmcomp
id division.
program-id. DTH1.
environment division.
input-output section.
file-control.
select xml-stream assign to "$HOME/myxml.xml"
organization is xml
file status is file-status.
data division.
file section.
xd xml-stream.
01 my-record identified by "my_record".
02 my-customer identified by "cust_record".
03 my-name pic x(100) identified by "my_name".
03 my-company pic x(100) identified by "my_company".
03 my-phone pic x(100) identified by "my_phone".
working-storage section.
01 file-status pic s9(9) value 0.
procedure division.
open output xml-stream
display "status : " file-status.
move "chris" to my-name
move "Micro Focus" to my-company
move "603-555-1212" to my-phone
write my-record key is all my-customer
move "John" to my-name
move "Microsoft" to my-company
move "800-111-2222" to my-phone
write my-record key is all my-customer
write my-record
close xml-stream
stop run.
******** CODE ENDS **************************************************************
Thanks & Regards
Dhaval




