[vsni.co.uk] Contact us | Site map
Forum | VSN International Forum Index
Author Message
Post new topic

<  GenStat  ~  Writing a multi line macro in GenStat

Christof Pietsch
Posted: Mon Jun 11, 2012 1:01 pm Reply with quote
Joined: 15 Jun 2009 Posts: 7
Dear all,
I would like to write a macro of an IF-construct with multiple lines (see below). How may I acomplish that task?
Thanks
Christof

"# Example #"
FOR i = 1...NOTRAITS

REML [PRINT=*; PSE=alldifferences;\
FMETHOD=automatic;METHOD=AI; MAXCYCLE=20] SUBY; EXIT = remlex
IF remlex > 0
TXCONSTRUCT [TEXT = reml_error; SEPARATOR = '']\
'REML 1 not converged for: ',TraitName$[i], '; Error code: ', remlex
PRINT [IPRINT=*;SQUASH=yes]reml_error; SKIP = 0
APPEND[NEWVECTOR=failed_traits] OLDVECTOR failed_traits, TraitName$[i]
EXIT [CONTROL = for; REPEAT = yes]
ENDIF

ENDFOR
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
Post new topic

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum