Skip to main content
1-Visitor
October 23, 2014
Solved

im createfield symtax error

  • October 23, 2014
  • 1 reply
  • 1678 views

When I run the following im command I got "*** Error creating field Xxxx_Xxxx Xxx ##: syntax error"

im createfield --hostname=mks --type=date --description="Xxxx_Xxxx Xxx ##" --computation="XXXX_Xxxx Xxx Xxx Xxxx" --storeToHistoryFrequency=never --nostaticComputation --displayName="Xxxx Xxx ##" --name="XXXX_Xxxx Xxx ##"

The computation parameter is another Date field that is already created.

I'm using Integrity 2009 SP5 AIX.

    Best answer by DanR.

    I could not find this in any of the documentation, but I got is to work by inserting a single quote in the computation parameter. Shown in red.

    im createfield --hostname=mks --type=date --description="Xxxx_Xxxx Xxx ##"

    --computation='"XXXX_Xxxx Xxx Xxx Xxxx"' --storeToHistoryFrequency=never

    --nostaticComputation --displayName="Xxxx Xxx ##" --name="XXXX_Xxxx Xxx ##"

    1 reply

    12-Amethyst
    October 24, 2014

    I also tried this command, and it seemed to work correctly. Would you be able to provide more detail about the computation, and perhaps more information about the Date field you're referring to?

    DanR.1-VisitorAuthorAnswer
    1-Visitor
    October 24, 2014

    I could not find this in any of the documentation, but I got is to work by inserting a single quote in the computation parameter. Shown in red.

    im createfield --hostname=mks --type=date --description="Xxxx_Xxxx Xxx ##"

    --computation='"XXXX_Xxxx Xxx Xxx Xxxx"' --storeToHistoryFrequency=never

    --nostaticComputation --displayName="Xxxx Xxx ##" --name="XXXX_Xxxx Xxx ##"