Hi
Can anyone tell me how to use the VARCHAR in the CL program variable declartion ?
Requirement with example:
My CL variable declared size : 50 *char
My data to the variable is : 'Example' (7 characters length)
So, my CL variable should take only the 7 characters out of 50 characters declared.
Suppose my variable data changed to: 'SAMPLE' (6 characters len)
CL Variable should be of 6 characters.
Thanks in Advance.
Can anyone tell me how to use the VARCHAR in the CL program variable declartion ?
Requirement with example:
My CL variable declared size : 50 *char
My data to the variable is : 'Example' (7 characters length)
So, my CL variable should take only the 7 characters out of 50 characters declared.
Suppose my variable data changed to: 'SAMPLE' (6 characters len)
CL Variable should be of 6 characters.
Thanks in Advance.
Comment