How to pull related filds from input file into terminal



IBM's Command List programming language & Restructured Extended Executor

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

Postby dash123 » Wed Nov 23, 2011 2:26 pm

Thank U all for your suggestions.
dash123
 
Posts: 8
Joined: Wed Nov 02, 2011 5:42 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby Pedro » Sat Dec 03, 2011 10:41 pm

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.
Pedro Vera
User avatar
Pedro
 
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

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

Postby NicC » Sun Dec 04, 2011 1:01 am

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).
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Previous

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post