Hi,
I need some advice regarding this.
I have an RPGLE program which calls a Java method the Java method returns a string to my RPGLE program. The string looks like this:
John]999999999]John's address]@Tom]123456789]Tom's address]@#
Actually the string is in this format:
Name]SSN]Address@Name]SSN]Address@#
']' is the end of field marker
'@' is the end of record marker
'#' is the end of string marker.
So, the string i have given as an example above has 2 records and 3 fields in each record.
I need to extract each record in the above string and insert it in a physical file.
The physical file is having the fields Name,SSN and Address.
How can the above goal be achieved in the most efficient manner?
Thanks.
I need some advice regarding this.
I have an RPGLE program which calls a Java method the Java method returns a string to my RPGLE program. The string looks like this:
John]999999999]John's address]@Tom]123456789]Tom's address]@#
Actually the string is in this format:
Name]SSN]Address@Name]SSN]Address@#
']' is the end of field marker
'@' is the end of record marker
'#' is the end of string marker.
So, the string i have given as an example above has 2 records and 3 fields in each record.
I need to extract each record in the above string and insert it in a physical file.
The physical file is having the fields Name,SSN and Address.
How can the above goal be achieved in the most efficient manner?
Thanks.
Comment