1 Aug 2008 01:27
RE: [U2] UniData PROC tip: DB command
John Jenkins <u2guru <at> btinternet.com>
2008-07-31 23:27:04 GMT
2008-07-31 23:27:04 GMT
And a few more PROC commands for the die-hards: (I love them ! (sorry Wally !!) (from memory - I think I got it OK) BTW: H = "Hollerith" O=Output literal display text that follows Sn -set input buffer position to n (no blanks allowed in most flavours - a bit like var<-1>="xx") IP: - Input (key data) at current input buffer position with a colon prompt IP %1 input (key data) into input buffer position 1 %n - input buffer position n #n - output buffer position n &m.n - file buffer m, attribute n - attribute 0 is the ID !n - Select buffer n M - a "mark" cann be used to go FORWARD (G F) or BACKWARD (G B) to previous or next mark (bad practice - but you can do it) C - a comment RI / RO - reset input or output buffer F-CLEAR n - clear file buffer n F-OPEN n - open file buffer n to the specified file - if the open fails the next statement is executed otherwise it skips one statement F-READ n - reads specified record into file buffer n - if the read fails the next statement is executed otherwise it skips one statement STON - stack on X - exit with message MV x y- move into buffer x as specified in y (buffer or literal) F;%1;C1;+;?%1 - example of RPN math - adding one to input buffer 1 in this example: e.g. PUSH %1; PUSH character 1; ADD top two stack entries - POPPING them and(Continue reading)
RSS Feed