I am writing one sequential file in which I am writing strings seperated by '|' symbol in the same line.
eg:
jobname|procname1|procname2|procname3|procname4|procname5
ABCDABCD|XYZ|BCF|BHN|MNB|GBH|
EFGHABCD|ZXCEDF|EDFBCF|WSDEBHN|TTREMNB|BH|
MNBHABCD|XYZCVDSA|BCFAA|BHNS|MNBSDFG|GBHTRED|
As strings length are different so column wise all strings are in different columns.
So I need to justify the position of strings while writing the string in the sequential file, As I know the maximum length of the string is 20.
LIKE THIS
jobname|procname1|procname2|procname3|procname4|procname5
ABCDABCD|XYZ |BCF |BHN |MNB |GBH |
EFGHABCD|ZXCEDF |EDFBCF|WSDEBHN|TTREMNB|BH |
MNBHABCD|XYZCVDSA|BCFAA |BHNS |MNBSDFG|GBHTRED|