Just a quick intermission and clarification:

His code is for lite-c since c-script does not allow stucts and flexible data types.

You may be working with a lite-c version in which case ignore this but if you are trying JCL's code with c-script, it will never work.