COBOL 12 - Cobol - Difference between String and Unstring

String And Unstring in Cobol
  1. It is used to merge multiple variables into single variable.
  2. It is used to split the single variable into multiple variables.
  3. It is terminated with END-STRING
  4. It is terminated with END-UNSTRING
  5. In this Multiple sending fields and one receiving fields are used.
  6. Only one sending field and multiple receiving fields.
  7. WITH pointer option is used to specify starting position of receiving field.
  8. WITH POINTER option is used to specify starting position of sending field.
  9. Important note no (.) are allowed between string and END-STRING.
  10. Same way no (.) periods are allowed between UNSTRING & END-UNSTRING.
Previous
Next Post »