MQDATA =
....5...10...15...20...25...30...35...40...45...50 ...55...60
1 ' 20071024094790020720620190 IN000000646A000000075{2004'
61 '0426200710153XXX 2007102409479002'
121 '2378909790 IN000000645H000000500{20040526200710163XXX '
181 ' 20071024094890030083177390 IN'
241 '000002859{000000126I20040630200710083XXX '
In my MQ program, I get the entire message loaded into a variable MQDATA. I need to parsh out this data into a file that is 100 characters long. The length of MQDATA field is a variable length. How can I create a loop that will pull out this data until there is no more characters in the MQDATA string. If I don't know the length of the field?
DAC
....5...10...15...20...25...30...35...40...45...50 ...55...60
1 ' 20071024094790020720620190 IN000000646A000000075{2004'
61 '0426200710153XXX 2007102409479002'
121 '2378909790 IN000000645H000000500{20040526200710163XXX '
181 ' 20071024094890030083177390 IN'
241 '000002859{000000126I20040630200710083XXX '
In my MQ program, I get the entire message loaded into a variable MQDATA. I need to parsh out this data into a file that is 100 characters long. The length of MQDATA field is a variable length. How can I create a loop that will pull out this data until there is no more characters in the MQDATA string. If I don't know the length of the field?
DAC
Comment