Author Topic: Exporting Applications and Application Groups Via ARSXML  (Read 3500 times)

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1200
    • View Profile
Exporting Applications and Application Groups Via ARSXML
« on: April 27, 2015, 09:45:49 AM »
I was recently asked how to export an app and appgroup with ARSXML.

First off, check out this link.  "Listing 1" shows the format for each type of object to export.

http://www.ibm.com/developerworks/data/library/techarticle/dm-0510wagner/

I wanted to list out one app/app group so I created the following file:

<?xml version="1.0" encoding="IBM-1047"?>                                   
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"             
                xsi:noNamespaceSchemaLocation="../ondemand.xsd">           
                                                                           
   <applicationGroup name="Daily sales invoices">                           
   </applicationGroup>                                                     
   <application name="Daily sales invoices" appGroup="Daily sales invoices">
   </application>                                                           
                                                                           
</onDemand>                                                                 


The example above is for listing out the "Daily sales invoices app and appgroup from the ODF IVP.  (Yes, in this case the application name and the appGroup are the same.)

Then one up from that directory I copied the .../bin/xml/ondemand.xsd file pointed to in the example above.

Then I ran the following JCL:

//STEP1    EXEC PGM=BPXBATCH,REGION=0M           
//SYSPRINT DD SYSOUT=*                           
//SYSOUT   DD SYSOUT=*                           
//STDPARM  DD *                                 
PGM /usr/lpp/ars/V8R5M0/bin/arsxml               
export                                           
-h ARCH850 -u odv733 -p cmodrocks -v             
-d /u/odv733/t/                                 
-i                                               
application.ebcdic.xml                           
-o                                               
/u/odv733/t/exportap.ebcdic.xml                 
-w IBM-1047                                     
/*                                               
//ARSBIN     DD PATH='/usr/lpp/ars/V8R5M0/bin'   
//SYSOUT     DD SYSOUT=*                         
//STDERR     DD SYSOUT=*                         
//STDOUT     DD SYSOUT=*                         
//SYSUDUMP   DD SYSOUT=*                         


-d = source directory where the input xml files lives

-i = the name of the input xml file

-o = where the output gets written to

-w IBM-1047 = readable on z/OS.  Otherwise it comes out as ASCII and you have to use iconv or whatever to convert it into something readable.  (ugh)

Ed

#zOS #ODF