![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to see if there's an inconsistency between Pick variants given the LIST statements below. Here's a record (the ']' characters are value marks): 000 REC1 001 A]B]C 002 Code A]Code B]Code C 003 ]]100 Here's the output of LIST MYFILE "REC1" 1 2 3: MYFILE..... CODE DESCRIPTION AMOUNT REC1 A Code A B Code B C Code C 1.00 The '1.00' is the third value in the 'AMOUNT' column. Here's the output of LIST MYFILE "REC1" 3: MYFILE..... AMOUNT REC1 1.00 Note that the '1.00' is on the line immediately below 'REC1'. IOW, it's not shown as the third value in the output. Are all Pick systems consistent in this manner, or will some show the '1.00' as the third value (i.e., a blank line between the 'REC1' and the '1.00')? TIA. Regards, Joe |
#3
| |||
| |||
|
|
Joe wrote: I'm trying to see if there's an inconsistency between Pick variants given the LIST statements below. Here's a record (the ']' characters are value marks): 000 REC1 001 A]B]C 002 Code A]Code B]Code C 003 ]]100 Here's the output of LIST MYFILE "REC1" 1 2 3: MYFILE..... CODE DESCRIPTION AMOUNT REC1 A Code A B Code B C Code C 1.00 The '1.00' is the third value in the 'AMOUNT' column. Here's the output of LIST MYFILE "REC1" 3: MYFILE..... AMOUNT REC1 1.00 Note that the '1.00' is on the line immediately below 'REC1'. IOW, it's not shown as the third value in the output. Are all Pick systems consistent in this manner, or will some show the '1.00' as the third value (i.e., a blank line between the 'REC1' and the '1.00')? TIA. Regards, Joe |
#4
| |||
| |||
|
|
Joe, This should work the same on all platforms. However to be sure, if your variant understands the concept of association phrases, these should be used for belt-and-braces. Brian Leach Joe wrote: I'm trying to see if there's an inconsistency between Pick variants given the LIST statements below. Here's a record (the ']' characters are value marks): 000 REC1 001 A]B]C 002 Code A]Code B]Code C 003 ]]100 Here's the output of LIST MYFILE "REC1" 1 2 3: MYFILE..... CODE DESCRIPTION AMOUNT REC1 A Code A B Code B C Code C 1.00 The '1.00' is the third value in the 'AMOUNT' column. Here's the output of LIST MYFILE "REC1" 3: MYFILE..... AMOUNT REC1 1.00 Note that the '1.00' is on the line immediately below 'REC1'. IOW, it's not shown as the third value in the output. Are all Pick systems consistent in this manner, or will some show the '1.00' as the third value (i.e., a blank line between the 'REC1' and the '1.00')? TIA. Regards, Joe |
#5
| |||
| |||
|
|
First off, thanks to Chandru for his response. The UV example was what I was expecting. Brian, from my experience this doesn't work the same on all platforms. Unfortunate, but true. My problem was that I needed to show a particular column alone in the same way as if it were being displayed next to an associated column full of data. I ended up doing a dictionary work-around to produce the UV-like output. Regards, Joe "Brian Leach" <bfl (AT) mmt-thamesvalley (DOT) com> wrote in news:fjugb.4804$kA.1332198 (AT) wards (DOT) force9.net: Joe, This should work the same on all platforms. However to be sure, if your variant understands the concept of association phrases, these should be used for belt-and-braces. Brian Leach Joe wrote: I'm trying to see if there's an inconsistency between Pick variants given the LIST statements below. Here's a record (the ']' characters are value marks): 000 REC1 001 A]B]C 002 Code A]Code B]Code C 003 ]]100 Here's the output of LIST MYFILE "REC1" 1 2 3: MYFILE..... CODE DESCRIPTION AMOUNT REC1 A Code A B Code B C Code C 1.00 The '1.00' is the third value in the 'AMOUNT' column. Here's the output of LIST MYFILE "REC1" 3: MYFILE..... AMOUNT REC1 1.00 Note that the '1.00' is on the line immediately below 'REC1'. IOW, it's not shown as the third value in the output. Are all Pick systems consistent in this manner, or will some show the '1.00' as the third value (i.e., a blank line between the 'REC1' and the '1.00')? TIA. Regards, Joe |
#6
| |||
| |||
|
|
I suspect on most Picks you can set a Dict association (C - D in line 4), which will force the display in synch. Another way of course is to use an A; correlative that concats the various fields you want to display. Remember to do output conversion within the A; and perhaps pad to fixed length. Of course, you will truncate long strips instead of wrapping. Eg: attrs 2 : 3(date) : 4( money) could be formatted by: A;2(L#30 ):3(D2/):4(MR2,$ #10) note the blanks within the format field serve to separate the display data. Chandru Murthi |
![]() |
| Thread Tools | |
| Display Modes | |
| |