Accepted, Not Yet Planned

Based on the information provided, this is not a priority for a programmatic fix in the product.

update xpp command update_JT

The command use to update the job ticket update_JT is useful for many purposes, but  as of xpp 9.3.1 it does not update the field in the job ticket sessions saved

Our site has thousands of archived documents that it republishes weekly, and most of those old jobs are set to save two or three sessions. Ug. 

We would like to set the sessions field to "none" in the batch environment in order to not have to deal with all the additional page files saved during multi-compose processing. 

Of course, we can convert the job ticket to XML/ASCII , update the field, and convert it back to binary. That will help. 

It would, however, save cycles and be more efficient if we could flash the job ticket with a command line option from update_JT to reset that field in a single step. 

This would simplify our reprocessing of older, archived documents, and any simplification of batch processing is a good thing overall. 

Thanks for considering this enhancement. 

Regards, 

John

Parents
  • And one more thought, John.

    If all you're needing to do is to update the Sessions Saved field of the JT to "none", you can accomplish that much easier than "round-tripping" the whole JT file (i.e. 'sdedit -aout' followed by 'sdedit -ain') with just an 'sdedit -ain' command with a "fixed" content input file.

    In other words, you can use a -ain file to just update one field, which is especially easy in S/D files that have only one table/rule structure (e.g. the JT or DT).

    So if you create an ASCII file that contains this:

    FILE { type : jt }
    BODY 1:1 {
    archive : none
    }
    END

    Or using the XML format, if the file contains this:

    <?xml version="1.0"?>
    <file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="jt.xsd"
       type="jt">
    <table>
     <rule key="1">
        <archive>none</archive>
     </rule>
    </table>
    </file>

    You can then just do 'sdedit jt job -ain file' and it will just update the archive (Sessions Saved) field of an existing JT to 'none' w/o affecting any other fields.

    Jonathan Dagresta
    SDL XPP Engineering

Comment
  • And one more thought, John.

    If all you're needing to do is to update the Sessions Saved field of the JT to "none", you can accomplish that much easier than "round-tripping" the whole JT file (i.e. 'sdedit -aout' followed by 'sdedit -ain') with just an 'sdedit -ain' command with a "fixed" content input file.

    In other words, you can use a -ain file to just update one field, which is especially easy in S/D files that have only one table/rule structure (e.g. the JT or DT).

    So if you create an ASCII file that contains this:

    FILE { type : jt }
    BODY 1:1 {
    archive : none
    }
    END

    Or using the XML format, if the file contains this:

    <?xml version="1.0"?>
    <file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="jt.xsd"
       type="jt">
    <table>
     <rule key="1">
        <archive>none</archive>
     </rule>
    </table>
    </file>

    You can then just do 'sdedit jt job -ain file' and it will just update the archive (Sessions Saved) field of an existing JT to 'none' w/o affecting any other fields.

    Jonathan Dagresta
    SDL XPP Engineering

Children