Header Changed from : Builtin symbol %OutputOffset doesnt exist
to: Builtin symbol %OutputOffset only works when not using #[Empty|Pre|Post]Embed
TLDR
%Embed[ID|Description|Parameters] works as parameters inside #[Empty|Pre|Post]Embed
The %OutputOffset only works when the #[Empty|Pre|Post]Embed is not used.
%OutputOffset and %BytesOutput only works when actually writing to a file.
Start of original post:
The builtin symbol %OutputOffset throws an error Unknown Variable '%OutputOffset'
%OutputOffset Same as %BytesOutput.
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:Main %EmbedID:%MyEmbedID %EmbedDescription:001 xyz Embed %EmbedParameters: %BytesOutput:6701 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:Main %EmbedID:%CWMainEmbedGlobalBefore %EmbedDescription:010 After Includes, Before Global Data %EmbedParameters: %BytesOutput:6784 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:Main %EmbedID:%CWMainEmbedGlobalAfter %EmbedDescription:020 After Global Data %EmbedParameters: %BytesOutput:6906 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:Main %EmbedID:%CWMainEmbedMapInside %EmbedDescription:030 Inside MAP %EmbedParameters: %BytesOutput:7019 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:AClass %EmbedID:%CWClassEmbedDataBefore %EmbedDescription:010 Before Data %EmbedParameters: %BytesOutput:7464 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:AClass %EmbedID:%CWClassEmbedDataAfter %EmbedDescription:020 After Data %EmbedParameters: %BytesOutput:8111 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:AClass %EmbedID:%CWClassEmbedPrototypeBefore %EmbedDescription:030 Before Method Prototype %EmbedParameters: %BytesOutput:8207 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:AClass %EmbedID:%CWClassEmbedPrototypeAfter %EmbedDescription:040 After Method Prototype %EmbedParameters: %BytesOutput:8714 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:AnotherClass %EmbedID:%CWClassEmbedDataBefore %EmbedDescription:010 Before Data %EmbedParameters: %BytesOutput:9455 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:AnotherClass %EmbedID:%CWClassEmbedDataAfter %EmbedDescription:020 After Data %EmbedParameters: %BytesOutput:9556 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:AnotherClass %EmbedID:%CWClassEmbedPrototypeBefore %EmbedDescription:030 Before Method Prototype %EmbedParameters: %BytesOutput:9652 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[3268] #EmptyEmbed %Module:t2001.clw %Procedure:AnotherClass %EmbedID:%CWClassEmbedPrototypeAfter %EmbedDescription:040 After Method Prototype %EmbedParameters: %BytesOutput:10089 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
There is no example of its use in any of the shipping templates, but there are plenty of %bytesoutput examples in the shipping templates.
fwiw but why would that be?
Edit.
Managed to get %ByteOffset working, but some of the other builtin symbols stopped working or displayed the wrong info!
[3268] %grpCWAppEmbedInfo %Module:t2001.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:4970 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[3268] %grpCWAppEmbedInfo %Module:t2001.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:4970 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[3268] %grpCWAppEmbedInfo %Module:t2002.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:8082 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[3268] %grpCWAppEmbedInfo %Module:t2002.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:8082 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[3268] %grpCWAppEmbedInfo %Module:t2003.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:11194 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[3268] %grpCWAppEmbedInfo %Module:t2003.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:11194 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[3268] %grpCWAppEmbedInfo %Module:t2004.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:14306 %OutputIndent: %OutputColumn:0 %CommentColumn:0
Edit2.
So it looks like the built in symbols %EmbedID, %EmbedDescription & %EmbedParameters only work as parameter’s passed inside #EmptyEmbed, #PreEmbed & #PostEmbed.
In my tests, I’m calling a #group with the %Embed[ID|Description|Paramters] inside the #[Empty|Pre|Post]Embed functions and they pass fine.
Using these builtin symbols outside of those function dont work using %(), #Call(), #Insert(), #Invoke().
The %OutputOffset only works when the #[Empty|Pre|Post]Embed is not used.
%OutputOffset and %BytesOutput only works when actually writing to a file.
[404] %grpCWAppEmbedInfo %Module:t2002.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:11606 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[404] #EmptyEmbed %Module:t2002.clw %Procedure:Main %EmbedID:%MyEmbedID %EmbedDescription:001 xyz Embed %EmbedParameters: %BytesOutput:11609 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[404] %grpCWAppEmbedInfo %Module:t2002.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:11692 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[404] %grpCWAppEmbedInfo %Module:t2002.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:11695 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[404] #EmptyEmbed %Module:t2002.clw %Procedure:Main %EmbedID:%CWMainEmbedGlobalBefore %EmbedDescription:010 After Includes, Before Global Data %EmbedParameters: %BytesOutput:11698 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[404] %grpCWAppEmbedInfo %Module:t2002.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:11820 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[404] #EmptyEmbed %Module:t2002.clw %Procedure:Main %EmbedID:%CWMainEmbedGlobalAfter %EmbedDescription:020 After Global Data %EmbedParameters: %BytesOutput:11823 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[404] %grpCWAppEmbedInfo %Module:t2002.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:11927 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[404] #EmptyEmbed %Module:t2002.clw %Procedure:Main %EmbedID:%CWMainEmbedMapInside %EmbedDescription:030 Inside MAP %EmbedParameters: %BytesOutput:11939 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[404] %grpCWAppEmbedInfo %Module:t2002.clw %Procedure:Main %EmbedID: %EmbedDescription: %EmbedParameters: %BytesOutput: %OutputOffset:12043 %OutputIndent: %OutputColumn:0 %CommentColumn:0
[404] #EmptyEmbed %Module:t2002.clw %Procedure:AClass %EmbedID:%CWClassEmbedDataBefore %EmbedDescription:010 Before Data %EmbedParameters: %BytesOutput:12387 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[404] #EmptyEmbed %Module:t2002.clw %Procedure:AClass %EmbedID:%CWClassEmbedDataAfter %EmbedDescription:020 After Data %EmbedParameters: %BytesOutput:13034 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[404] #EmptyEmbed %Module:t2002.clw %Procedure:AClass %EmbedID:%CWClassEmbedPrototypeBefore %EmbedDescription:030 Before Method Prototype %EmbedParameters: %BytesOutput:13130 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51
[404] #EmptyEmbed %Module:t2002.clw %Procedure:AClass %EmbedID:%CWClassEmbedPrototypeAfter %EmbedDescription:040 After Method Prototype %EmbedParameters: %BytesOutput:13637 %OutputOffset: %OutputIndent:0 %OutputColumn:0 %CommentColumn:51