COLLATE (start-position<,end-position> ) | (start-position<,,length> )
I find these syntax hard to understand . I dont get the < > symbols.
why start-position<
and why end-position>
why length>
what is going on
this applies to every command definition..not just collate
It means that the arguements in <> are optional and not required. You can see this below the Syntax Definition in the Optional Arguments Section.
but the come is confusing, why<,end-position>, seems < > not referring to the same term
what is <,,xxx>
why the comma not outside the brackets < >
@HeatherNewton wrote:
but the come is confusing, why<,end-position>, seems < > not referring to the same term
what is <,,xxx>
why the comma not outside the brackets < >
Because if you don't specify that parameter you also don't include the comma. Including the comma without the parameter results in a syntax error.
Do you not see the difference between these two forms?
collate(1,5)
collate(1,,5)
The first one has TWO arguments and the second one has THREE arguments, but the second argument is empty.
Why not read the documentation on how to read the documentation? Here is one from the SAS GRAPH manual but I suspect this description is in all of the manuals. https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grstatgraph/p06hgx459w75qen1wpavfghx4ket.h...
Just expand it to multiple lines if you are having trouble understanding the compressed syntax.
COLLATE (start-position) COLLATE (start-position,end-position ) COLLATE (start-position) COLLATE (start-position,,length)
Not sure why they listed that one version with only one argument supplied twice.
Might have been simpler to use something like:
COLLATE (start-position<,end-position> ) | (start-position,,length )
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.