You're right, I didn't "bother", I just tried to be helpful.
Obviously that wasn't good enough for you so I won't be doing it again.
goodbye.
BillyBoyo wrote:deen67, are you processing a file of what was DFHCOMMAREA or are you doing it in CICS?
deen67 wrote:[...]
just a question for unstring syntax, want to know is't valid or not in cobol. let's say the string contains like this
STRING1 = "CMNOW_REF_NO=1820101010101~CMNOW_CATEGORY=1~CMNOW_NEW_ID=820101010101~CMNOW_OLD_ID=A181814~CMNOW_POLICE_ID=X"
01. String1.
05 Temp-col-val occurs pic x(100) occurs 10 times
perform varying ctr1 until < length of STRING1
add 1 to ctr1
unstring string1 delimited by '~'
into temp-col-val(ctr1)
end-perform
will my output like this
temp-col-val(1) = CMNOW_REF_NO=1820101010101
temp=col-val(2) = CMNOW_CATEGORY=1
temp-col-val(3) = CMNOW_NEW_ID=820101010101
and bla bla bla
is there any possible to use 1 unstring command to get output like this from STRING1
temp-col(1)=CMNOW_REF_NO
temp-val(1)=1820101010101
temp-col(2)=CMNOW_CATEGORY
temp-val(2)=1
temp-col(3)=CMNOW_NEW_ID
temp-val(3)=820101010101