./invert.bsh: line 12: syntax error near unexpected token (' ./invert.bsh: line 12: adainv dbid=014 invert=256 fields cp=ab(1,12),ad(1,14) end_of_fields > $SYS
Could somebody explain me, how should I write the script. Is it possible at all, to create new spd with like looking script ?
I tried to create descr. for one normal field, it goes without problems.
Left and right parenthesis are special characters and therefore interpreted by the shell. Please put your parenthesis in single quotes to avoid this error.
Example:
Excuse me, I didn’t have any time to answer in June.
I have tried the suggested changes. Despite entering these ’ characters, the syntax error appeared.
Next have I removed the first line from the script
( #!/bin/sh ). It goes very well now .
I suggest to publish some advice in Adabas Docu (e.g. my (finally corrected) example of use of the ADAINV utility ).
Thank you.