Skip to main content

mfcatxml - syntax error near unexpected token

  • September 9, 2013
  • 1 reply
  • 0 views

When trying to export the Enterprise Server JES catalog to XML on a Linux/Unix/AIX system using this command:

mfcatxml FUNC(EXP) OUTFILE(OUT.XML)

You receive this error mesage:

-bash: syntax error near unexpected token `('


 The problem with your export utility is that the braces "(" & ")"  need to be  escaped from the unix shell ..

mfcatxml FUNC\\(EXP\\) OUTFILE\\(OUT.XML\\)


#mfcatxmlsyntaxerror
#EnterpriseDeveloper
#MFDS

1 reply

  • Author
  • Rocketeer
  • 19312 replies
  • September 13, 2018

When trying to export the Enterprise Server JES catalog to XML on a Linux/Unix/AIX system using this command:

mfcatxml FUNC(EXP) OUTFILE(OUT.XML)

You receive this error mesage:

-bash: syntax error near unexpected token `('


 The problem with your export utility is that the braces "(" & ")"  need to be  escaped from the unix shell ..

mfcatxml FUNC\\(EXP\\) OUTFILE\\(OUT.XML\\)


#mfcatxmlsyntaxerror
#EnterpriseDeveloper
#MFDS

With double quotes it worked fine in RHEL

mfcatxml "func(exp) outfile(IOAT_CATALOG.xml)"