is an array of 100 strings not a string of length 100.
With the old alpha type that you see in Khurshid's example you had to specify the length. But you should always use string rather than the alpha type. alpha is a leftover from early versions of CSPro that didn't have variable length strings.
So, how do I declare those 3 stings as I want them each to have a length of 100,not 100 strings as @Josh has explained. My aim is to put them in same line coz I have other strings that take different lengths
The whole point of string variables is you do not need to specify the length. The system makes them as long you need them to be based on what values you assign to them. So you don't need to specify the length at all.
This, as an example, declares an array of 100 alpha objects where each is 60 characters:
arrayalpha(60) my_array_name(100);
As Josh mentioned, we suggest that you use strings instead of alphas. If you are concerned about how a report looks when written out, you can control the width of the strings when written out. For example:
write("%-60s", my_string_name);
That will pad the string so that it is left-justified and takes up 60 characters. See more here: