Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select 'Case' in free format

Status
Not open for further replies.

Pekka

Technical User
Mar 19, 2002
107
0
0
FI
Hi,
I'm trying to play with free format select statement. I can't find out what I'm missing here:
/Free
Select Case Zter ;
==> aaaa
5507 30 a 001039 A semi-colon is not specified at the end of a free-form specification.
When '8' ;
Then ;
Zterm='0045' ;
Zbd1t='45' ;
.
.
EndSl ;
/End-free
 
The syntax is wrong for RPG. Try something like:
Code:
   /free

      Select;
      When Zter = 8;
         Zterm = '0045';
         Zbd1t = '45';
      When ...
         ...
         ...
      Other;
         ...
      EndSL;

   /end-free
 
Thanks, that worked great!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top