hello
i'm having a hard time on reading a sequential file that is partly fixed. i've tried several steps but couldn't figure out how to make this work
My file has a listing of people. Each record has a line with P on it and a variable number of records on each row. I couldn't figure out how to read the P, then read the next x lines (number of lines is variable) and storing it on a row..then reading the next P and the next rows as a new record.
My file is something like:
HEADER
P <--marks the begining of a record
1JOHN DOE <--1 identifies what kind of info comes next, on this case it's name
212309029309<--2 is the idenfier of the info..it could be social security number, for example
319800918 <---same for 3...this time birth date
P
1Ronaldo
319800601 <---this record doenst have the type 2 info
P
and it goes on..
is there a way to do this with pdi? i'm desperate..hahaha
i'm having a hard time on reading a sequential file that is partly fixed. i've tried several steps but couldn't figure out how to make this work
My file has a listing of people. Each record has a line with P on it and a variable number of records on each row. I couldn't figure out how to read the P, then read the next x lines (number of lines is variable) and storing it on a row..then reading the next P and the next rows as a new record.
My file is something like:
HEADER
P <--marks the begining of a record
1JOHN DOE <--1 identifies what kind of info comes next, on this case it's name
212309029309<--2 is the idenfier of the info..it could be social security number, for example
319800918 <---same for 3...this time birth date
P
1Ronaldo
319800601 <---this record doenst have the type 2 info
P
and it goes on..
is there a way to do this with pdi? i'm desperate..hahaha