Is it possible to find the length of the string in a field (field - defined by columns). If yes I need the length of that string in the same record. End of the string within the specified field is determined by successive space characters.
For example, Input file has some data from column 1 to 9 of variable length.
Output file should have the records with the length following them
You can use OUTFIL with FTOV,VLTRIM=C' ' to convert the records to VB with an RDW (length is in 1,2,BI). Then you can subtract 4 from the 1,2,BI value to get the length of the data up to the first nonblank character.
Can the length be 1-3096? Do you want to display the data (up to 3096 bytes) with the length after it? If you show what you really want for output, I can show you how to do it.