Author Topic: ARSXML Export Application group along with Applications  (Read 144 times)

galina raychuk

  • Newbie
  • *
  • Posts: 2
    • View Profile
ARSXML Export Application group along with Applications
« on: April 03, 2024, 08:22:27 AM »
Need to export an application group with applications attached to App group.
Looking for some examples. Thank you

I have this to export application group:
#This function will export all existing appgroups from ags.list, update appgroup name to $grpname-ANEX and Account Number to length of 9
function exportappgroupARSXML {
PWD=$(pwd)
appgrps=`cat ${WDIR}/ags.list`
for grpname in ${appgrps}
  do
 cp ${WDIR}/xmlheader ${XMLFILE}
echo $grpname
echo "   <applicationGroup name=\"${grpname}\">" >>${XMLFILE}
echo "  </applicationGroup>" >>$XMLFILE
echo "  </onDemand>" >>$XMLFILE
${ARSXML} export -h ${HOST} -u ${ADM} -p ${PW} -i ${XMLFILE} -r pl -v >${tempout}
« Last Edit: April 03, 2024, 11:00:08 AM by galina raychuk »

Mehmet S Yersel

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
    • LinkedIn Profile
Re: ARSXML Export Application group along with Applications
« Reply #1 on: April 03, 2024, 01:24:16 PM »
You need to add the -r a option for exporting applications contained within the application group. This part should be:

${ARSXML} export -h ${HOST} -u ${ADM} -p ${PW} -i ${XMLFILE} -r apl -v >${tempout}
#zOS #Multiplatforms
#DB2 #OAM
#AFP #RiCOH AFP2PDF #SnowBound
#Finance #Telecom #Airlines
#ICN #IHS #WAS ND #Cert and Key Management
#Migrations #Data Modeling #RACF-2-CMOD Synch
#FileTek AMMO #ABI #RMDS #RADAR

galina raychuk

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: ARSXML Export Application group along with Applications
« Reply #2 on: April 04, 2024, 07:10:21 AM »
Thanks a lot. I did have -r but needed a (for application).