How can I capture or save a large output/sysout in a Control-M for Web Services REST job?

Version 1
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M for Web Services, Java and Messaging


    COMPONENT:

    Control-M for Web Services, Java and Messaging


    APPLIES TO:

    Control-M for Web Services, Java and Messaging 8.0.00



    QUESTION:

    How to capture a large output/sysout in the Control-M for Web Services?  The result of the REST job is truncated in the output file, how can the entire output be saved?


    ANSWER:


    In the job definition, under the Output Parameter, click on "Add a parameter", then, under the "Parameter name, XPath, or JsonPath" column, enter "$".  The '$' alone means everything under the root of the json.

    In the "Variable or file URI to extract to" column, enter the URI of the fully qualified path where the entire REST output needs to be routed to. For example:
     
          file://c:\MyOutput\file1.dat

    This option will still leave the output/sysout truncated, however, the entire response output will be fully stored in the file as specified in the Output Parameter table.


    Article Number:

    000125682


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles