Short: Convert IFF data to rexx source Author: polluks@sdf.lonestar.org (Stefan Haubenthal) Uploader: polluks sdf lonestar org (Stefan Haubenthal) Type: util/conv Version: 2.3 Replaces: util/conv/IFF2rexx.lha Architecture: generic /* Generated by IFF2rexx V2.3 */ id="PREF" /* 530 */ id=id "PRHD" /* 6 */ data.1=, "000000000000"x /* */ id=id "CTRY" /* 504 */ data.2=, "0000000000000000 0000000000000000"x||, /* */ [...] "0000000000000001 01002D0000000000"x||, /* - */ "0000000001010001"x /* */ len=4 do chunk=1 to 2 len=len+8+length(data.chunk)+length(data.chunk)//2 end call open(iff,"iran.country",W) call writech(iff,"FORM"d2c(len,4)) do chunk=0 to 2 call writech(iff,left(word(id,chunk+1),4)) if chunk>0 then call writech(iff,d2c(length(data.chunk),4)data.chunk) if length(data.chunk)//2 then call writech(iff,"00"x) end