Page 2 of 2

Re: How to pull related filds from input file into terminal

PostPosted: Wed Nov 23, 2011 2:26 pm
by dash123
Thank U all for your suggestions.

Re: How to pull related filds from input file into terminal

PostPosted: Sat Dec 03, 2011 10:41 pm
by Pedro
SELECT
  WHEN SYSID = "" THEN SAY "PLEASE ENTER ID"
  OTHERWISE CALL PROCESS VAR2,VAR3
  SAY 'NAMEX :'||VAR2
  SAY 'NAMEY :'||VAR3
END


Does that work? I do not believe it will work because the CALL and SAY statements should be grouped by DO / END.

Re: How to pull related filds from input file into terminal

PostPosted: Sun Dec 04, 2011 1:01 am
by NicC
Does work, IIRC. There is no need for a DO on an OTHERWISE - anything after the OTHERWISE is considered a statement block terminate by the END of the SELECT. Surprised me when I found it (I think in TRL2).