![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm currently working at creating a new data item and am stuck on this one issue: The data field that I am trying to get at is in the CM table and looks like this: 022 \041-30-0374B\4\,,,,,,,11810]105\R02732988\4\89860]\041300374\4\89860 So there are two values (separated by the "]", but then each one has multiple values separated by "\" and even some of those have multiple values separated by the ","! So I created a data item in the IC table that looks like this: 001 S 002 3 003 SECONDARY INS 004 005 006 007 008 TCM;X2:22:22 009 L 010 30 which should select the second data item from the CM table and that gives me the following output: IC........ SECONDARY INS..... 1575154 105 R02732988 4 89860 You will notice that instead of keeping the items separated by a "\", the program translated it into a carraige return (it's not just the length of the field - I've already tried that). So I was going to add this to the field: 008 TCM;X2:22:22]G1\1 Trying to get at that second value (R02732988), but no dice. Any suggestions? Thanx, Russ |
#3
| |||
| |||
|
|
Hi Russ You are looking at multi sub values CHAR(252) is the separator and you will need to write some basic to extract them easily. Peter McMurray "Russ" <rscribner (AT) data-tx (DOT) com> wrote in message news:1121809413.091318.312950 (AT) g49g2000cwa (DOT) googlegroups.com... I'm currently working at creating a new data item and am stuck on this one issue: The data field that I am trying to get at is in the CM table and looks like this: 022 \041-30-0374B\4\,,,,,,,11810]105\R02732988\4\89860]\041300374\4\89860 So there are two values (separated by the "]", but then each one has multiple values separated by "\" and even some of those have multiple values separated by the ","! So I created a data item in the IC table that looks like this: 001 S 002 3 003 SECONDARY INS 004 005 006 007 008 TCM;X2:22:22 009 L 010 30 which should select the second data item from the CM table and that gives me the following output: IC........ SECONDARY INS..... 1575154 105 R02732988 4 89860 You will notice that instead of keeping the items separated by a "\", the program translated it into a carraige return (it's not just the length of the field - I've already tried that). So I was going to add this to the field: 008 TCM;X2:22:22]G1\1 Trying to get at that second value (R02732988), but no dice. Any suggestions? Thanx, Russ |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Thanks for the quick replies - I still a newbie at writing basic - I think I understand how to extract the data - but how do you reference the basic program in the tfile statement, and how does the value get returned.... Thanx, Russ |
#6
| |||
| |||
|
|
I'm currently working at creating a new data item and am stuck on this one issue: The data field that I am trying to get at is in the CM table and looks like this: 022 \041-30-0374B\4\,,,,,,,11810]105\R02732988\4\89860]\041300374\4\89860 So there are two values (separated by the "]", but then each one has multiple values separated by "\" and even some of those have multiple values separated by the ","! So I created a data item in the IC table that looks like this: 001 S 002 3 003 SECONDARY INS 004 005 006 007 008 TCM;X2:22:22 009 L 010 30 |
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |