×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
For the record, I have been programming in RPG for over 25 years.......never hit this problem before.
Thanks again.
From: Wells, Joe J
Sent: Friday, June 09, 2017 10:53 AM
To: 'rpg400-l@xxxxxxxxxxxx'
Subject: Unexpected SCAN Opcode Result
Before posting this, I did some quick research and did not find anything about this issue........forgive me if it is well known and I simply overlooked it!
Had an interesting problem this morning and I was surprised that it did not throw an error........
Wrote a short test program to illustrate the issue -
0001.00 d pos1 s 1 0 dim(20)
0002.00 d pos2 s 2 0 dim(20)
0003.00 d string s 20a
0004.00
0005.00 c eval string=
0006.00 c '1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|'
0007.00
0008.00 c '|' scan string pos1
0009.00
0010.00 c '|' scan string pos2
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.