|
Hi Kathy, Your input specs define two formats, but you haven't told the system how to identify one or the other, so it puts all the data into the first one. Do debug again at the same point and see if pos.1 of CBATNO contains what you keyed into MCODE. It's been a long time since I did any S36 programming, so I can't remember if the format name you're outputting with the K8 is returned. Doesn't look like it since you made no provision for it in your input specs, so I'd say you need to output something unique to the screen that will be read back in to identify the screen. It could be a hidden field. Use that on your input specs to identify which format was just read: > 0117.00 IDE123SF NS 01 1 C4 <------------------------ > 0118.00 I* Format-DE123S04 > 0119.00 I 1 4 CBATNO > 0120.00 I 5 10 CBDATE > 0121.00 * > 0122.00 IDE123SF NS 01 1 C6 <------------------------ > 0123.00 I* Format-DE123S06 > 0124.00 I 1 1 MCODE > 0125.00 I 2 11 CZPN > 0126.00 I 12 21 CZCOMP > 1232.00 O E 84 SCRN4 > 1233.00 O K8 'DE123S04' -------------->O 1 '4' > 1234.00 O CBATNO 5 > 1235.00 O CBDATE 11 > 1236.00 O 13 ERRMS4 66 > 1237.00 * > 1255.00 O E 86 SCRN6 > 1256.00 O K8 'DE123S06' -------------->O 1 '6' > 1257.00 O MCODE 2 > 1258.00 O CZPN 12 > 1259.00 O CZCOMP 22 > 1260.00 O 13 ERRMS6 77 > 1261.00 O 13 ERRMS 93 > 1262.00 O SBATNO 97 > 1263.00 O 13 ERRMS1 119 > 1264.00 O 13 ERRMS3 141 HTH Peter Dow Dow Software Services, Inc. 909 425-0194 voice 909 425-0196 fax > +--- > | This is the RPG/400 Mailing List! > | To submit a new message, send your mail to RPG400-L@midrange.com. > | To subscribe to this list send email to RPG400-L-SUB@midrange.com. > | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.