![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello Folks I was asked this question today & do not know the answer. Is there an equivalent command to require select (I believe U2 has it) in D3. Any suggestions on how to achieve the same result. Many Thanks |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Richard: It depends where you want to check for the presence of the select-list. If you can put it in a Proc, you can use the IF E ... IF # E ... Proc statements. If you want to put it in the program, you can use the IF SYSTEM(11) ... Basic statement.. Further, you might also want to look up the details of PROCREAD ... TCLREAD ... Basic statements. They might be appropriate in this situation. Regards Malcolm Bull |
#5
| |||
| |||
|
|
particular phrase |
#6
| |||
| |||
|
|
Malcolm, In 38 years in programming and 24 in Pick, I've never heard that particular phrase used in a sentence. What exactly is it (apparently an active list count) but what do the words mean? Thanks Mark Brown MBTraining (AT) aol (DOT) com> wrote in message news:1149781897.766162.288070 (AT) f6g2000cwb (DOT) googlegroups.com... Richard: It depends where you want to check for the presence of the select-list. If you can put it in a Proc, you can use the IF E ... IF # E ... Proc statements. If you want to put it in the program, you can use the IF SYSTEM(11) ... Basic statement.. Further, you might also want to look up the details of PROCREAD ... TCLREAD ... Basic statements. They might be appropriate in this situation. Regards Malcolm Bull |
#7
| |||
| |||
|
|
I assume you are referring to REQUIRE.SELECT it started with prime information (probably release 6.0) SELECT VOC WITH F1 EQ 'XXX' SORT VOC BY F2 BY F3 F1 F2 F3 REQUIRE.SELECT the sort wont happen if an active select isnt present its real useful when you select on a large data file but the condition(s) in the select statement returns zero items. Keeps lots of paper that will be thrown away from being used remember prime did not have procs and IF testing in paragraphs was somewhat weak at times Rich Mark Brown wrote: Malcolm, In 38 years in programming and 24 in Pick, I've never heard that particular phrase used in a sentence. What exactly is it (apparently an active list count) but what do the words mean? Thanks Mark Brown |
#8
| |||
| |||
|
|
I assume you are referring to REQUIRE.SELECT it started with prime information (probably release 6.0) SELECT VOC WITH F1 EQ 'XXX' SORT VOC BY F2 BY F3 F1 F2 F3 REQUIRE.SELECT the sort wont happen if an active select isnt present its real useful when you select on a large data file but the condition(s) in the select statement returns zero items. Keeps lots of paper that will be thrown away from being used remember prime did not have procs and IF testing in paragraphs was somewhat weak at times |
#9
| |||
| |||
|
|
Richard Wilson wrote: I assume you are referring to REQUIRE.SELECT it started with prime information (probably release 6.0) SELECT VOC WITH F1 EQ 'XXX' SORT VOC BY F2 BY F3 F1 F2 F3 REQUIRE.SELECT the sort wont happen if an active select isnt present its real useful when you select on a large data file but the condition(s) in the select statement returns zero items. Keeps lots of paper that will be thrown away from being used remember prime did not have procs and IF testing in paragraphs was somewhat weak at times Luke Webber wrote: Ah, thanks for explaining. The simple way of doing this in PROC is... PQ HSELECT VOC WITH F1 EQ 'XXX' STON HSORT VOC BY F2 BY F3 F1 F2 F3 REQUIRE.SELECT P In BASIC it's like this... DATA "SORT VOC BY F2 BY F3 F1 F2 F3 REQUIRE.SELECT EXECUTE "SELECT VOC WITH F1 EQ 'XXX'" This works because the stacked input is not processed by the SELECT processor unless the SELECT is successful. |
#10
| |||
| |||
|
|
Luke Webber wrote: Ah, thanks for explaining. The simple way of doing this in PROC is... PQ HSELECT VOC WITH F1 EQ 'XXX' STON HSORT VOC BY F2 BY F3 F1 F2 F3 REQUIRE.SELECT P In BASIC it's like this... DATA "SORT VOC BY F2 BY F3 F1 F2 F3 REQUIRE.SELECT EXECUTE "SELECT VOC WITH F1 EQ 'XXX'" This works because the stacked input is not processed by the SELECT processor unless the SELECT is successful. Then you don't need the "REQUIRE.SELECT" bit, do you? |
![]() |
| Thread Tools | |
| Display Modes | |
| |