Welcome to the IDM Forum. This forum is meant as a user-to-user support mechanism where users can share knowledge and tips for all IDM software.
Since these forums are user-to-user based, IDM does not regularly read or reply to the posts in this forum. For problem reports, suggestions, or feature requests, you must email us directly. Our trained technical support staff answers most inquiries within 30 minutes.
jeremyw wrote:Once it loops through every Line the begins with OBINP200 and deletes everything that has value's then I want to delete the following Column Ranges.

Jane wrote:Just so I'm clear, on the data you supplied, based on the column matching criteria you gave, you would delete all starting with OBINP200 except rows 9, 18, and 27 because these have all zeros at 537-550 - is that correct?
Jane wrote:Then you want to remove the ranges specified for ALL ROWS?
There appear to be header rows at rows 1, 10, 19, and 28.
Is this correct?
if (/^OBINP100/) {print OUT substr($_,14,8)}
if (/^OBINP200/) {
if (substr($_,521,9) eq "000000000" or substr($_,521,9) eq " " or substr($_,536,14) eq "00000000000000" or substr($_,536,14) eq " "){
print OUT substr($_,14,8) . substr($_,34,44) . substr($_,517,33) . substr($_,1900,)
}
}



Jane wrote:I'm not sure but it appears the problem may be with the line terminators in this new file.
Jane wrote:Nice job Mofi

jeremyw wrote:Would it be easy enough to add that to the code to put 2 or 3 spaces after position 9?
jeremyw wrote:Is it possible to take the data on Row 1 (60336600) and move it to the line below it and then put 2 or 3 spaces after it?


60336600 00644044 KZZ82A464 K64AWC ASST 47811 W812 12 000702407 00000000000000
60336600 00644045 KZZ82A464 K64AWC ASST 47811 W812 12 000702407 00000000000000
60336600 00644046 KZZ82A464 K64AWC ASST 47811 W812 12 000702407 00000000000000
60336600 00644047 KZZ82A464 K64AWC ASST 47811 W812 12 000702407 00000000000000
60336600 00644048 KZZ82A464 K64AWC ASST 47811 W812 12 000702407 00000000000000