RE: [U2] [UD] Referencing remote file directly
You can in UD as well by simply creating a DIR type VOC item for the directory the files are in. Then you can simply open the DIR and read and write the files. Although extra care must be taken with binary files. OPENSEQ is great for importing/exporting text files. You can very easily read or create *large* text files without worrying about putting the entire record into memory. Creating the DIR VOC entry also helps when moving the accounts around. You can simply update the VOC item rather than change the programs and re-compile. Hth Colin Alfke Calgary, Canada -Original Message- From: Bill Haskett Thanks Mike. I'll soon find out how to read and write files from/to the O/S file system. As we know, with D3 there's no difference so one uses the same, standard, file I/O statements. :-) Bill --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UD] Referencing remote file directly
As you've seen - no you need the VOC item. The plus side is that I've used this to access files on different servers. I've even run code from different servers. Note - locking is not respected when you do this! Although I do miss being able to quickly access a file from a different account as in D3. Hth Colin Alfke Calgary, Canada -Original Message- From: Bill Haskett I can't find the old discussions of this but can one reference a remote file directly in UniData. For instance, can I: :LIST D:\IBM\ud71\sys\VOC instead of needing a link like: 001 F 002 @UDTHOME\sys\VOC 002 @UDTHOME\sys\D_VOC ? Any help would be appreciated. :-) Bill Haskett --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UD] Referencing remote file directly
If you're going to be accessing UniData files from one instance of UniData in another instance then please use NFA - you *can* get away with it but please do *not* try updating anything over such a link. There is no lock integrity between the (separate) instances if NFA is not in place. Regards JayJay --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UD] Referencing remote file directly
Sure, you can use full paths in attribute 2 or 3 of Unidata VOCS. We make extensive use of @UDTHOME on our dev box. We have a development env, Systems and Acceptance, End To End and a training environment on the same server. We have a UNIX shell script that prompts a logged in user which environment they want to go to. From a maintenance stand point, the VOC's for all these environments are the same, using @UDTHOME. But the shell script sets a different $UDTHOME, so each environment has its own unique sets of the files. To see what your UDTHOME home is set to, do a !echo $UDTHOME at ECL. Hardcoded paths would make the maintenance of these environments a major headache. So I see @UDTHOME as a major blessing. - Rod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Preece Sent: Thursday, January 19, 2006 2:15 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UD] Referencing remote file directly I think not. This is often mentioned as one of the differences. I assume you'ved used indexinfocus to search? From: Bill Haskett [EMAIL PROTECTED] Reply-To: u2-users@listserver.u2ug.org To: u2-users@listserver.u2ug.org Subject: [U2] [UD] Referencing remote file directly Date: Wed, 18 Jan 2006 20:57:32 -0800 I can't find the old discussions of this but can one reference a remote file directly in UniData. For instance, can I: :LIST D:\IBM\ud71\sys\VOC instead of needing a link like: 001 F 002 @UDTHOME\sys\VOC 002 @UDTHOME\sys\D_VOC ? Any help would be appreciated. :-) Bill Haskett Advantos Systems, Inc. www.advantos.net (760)944-5570 (CA) (360)923-4838 (WA) --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ _ Make your dream car a reality http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fcarpoint%2Eninemsn%2Ecom%2Ea u_t=12345_r=emailtagline_m=EXT --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UD] Referencing remote file directly
Sorry late night. I did not see you want to do a LIST using the full path. You do need a VOC pointer in Unidata. Even ecltype u says a direct reference is not a file name list /mccdata/mcc13/CLM.DETAIL Not a filename : /mccdata/mcc13/CLM.DETAIL Sure, you can use full paths in attribute 2 or 3 of Unidata VOCS. We make extensive use of @UDTHOME on our dev box. We have a development env, Systems and Acceptance, End To End and a training environment on the same server. We have a UNIX shell script that prompts a logged in user which environment they want to go to. From a maintenance stand point, the VOC's for all these environments are the same, using @UDTHOME. But the shell script sets a different $UDTHOME, so each environment has its own unique sets of the files. To see what your UDTHOME home is set to, do a !echo $UDTHOME at ECL. Hardcoded paths would make the maintenance of these environments a major headache. So I see @UDTHOME as a major blessing. - Rod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Preece Sent: Thursday, January 19, 2006 2:15 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UD] Referencing remote file directly I think not. This is often mentioned as one of the differences. I assume you'ved used indexinfocus to search? From: Bill Haskett [EMAIL PROTECTED] Reply-To: u2-users@listserver.u2ug.org To: u2-users@listserver.u2ug.org Subject: [U2] [UD] Referencing remote file directly Date: Wed, 18 Jan 2006 20:57:32 -0800 I can't find the old discussions of this but can one reference a remote file directly in UniData. For instance, can I: :LIST D:\IBM\ud71\sys\VOC instead of needing a link like: 001 F 002 @UDTHOME\sys\VOC 002 @UDTHOME\sys\D_VOC ? Any help would be appreciated. :-) Bill Haskett Advantos Systems, Inc. www.advantos.net (760)944-5570 (CA) (360)923-4838 (WA) --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ _ Make your dream car a reality http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fcarpoint%2Eninemsn%2Ecom%2Ea u_t=12345_r=emailtagline_m=EXT --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UD] Referencing remote file directly
Mike: Yea. :-( Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Preece Sent: Thursday, January 19, 2006 12:15 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UD] Referencing remote file directly I think not. This is often mentioned as one of the differences. I assume you'ved used indexinfocus to search? From: Bill Haskett [EMAIL PROTECTED] Reply-To: u2-users@listserver.u2ug.org To: u2-users@listserver.u2ug.org Subject: [U2] [UD] Referencing remote file directly Date: Wed, 18 Jan 2006 20:57:32 -0800 I can't find the old discussions of this but can one reference a remote file directly in UniData. For instance, can I: :LIST D:\IBM\ud71\sys\VOC instead of needing a link like: 001 F 002 @UDTHOME\sys\VOC 002 @UDTHOME\sys\D_VOC ? Any help would be appreciated. :-) Bill Haskett --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UD] Referencing remote file directly
Rodney: Thanks. I was thinking this was true. U2 does allow direct reference to an O/S path from within BASIC, e.g: OPEN 'DOS:E:\IBM\ud71\sys\BP' TO BP.FV ... (in D3) OSOPEN 'E:\IBM\ud71\sys\BP' TO BP.FV...(in UD) OPENPATH 'E:\IBM\ud71\sys\BP' TO BP.FV... (in UV) I can do this (assuming I have permissions) in DOS or Linux by: dir e:\IBM\ud71\sys\BP or #ls -al /ourdir/ourbankdata D3 allows such direct O/S reference from TCL, like: :LIST DOS:E:\IBM\ud71\sys\BP or :LIST UNIX:/ourdir/ourbankdata Or to a file within a different D3 account by: :LIST PAYROLL,EMPLOYEE,2004, or :LIST DM,BP, This would one less layer of stuff we'd have to go through when installing and configuring our application and I'm thinking: less is more (or where is the MV2006 standard). :-) Thanks again. Maybe this would be a good enhancement request. :-) Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Baakkonen, Rodney A (Rod) 46K Sent: Thursday, January 19, 2006 1:15 AM To: 'u2-users@listserver.u2ug.org' Subject: RE: [U2] [UD] Referencing remote file directly Sorry late night. I did not see you want to do a LIST using the full path. You do need a VOC pointer in Unidata. Even ecltype u says a direct reference is not a file name list /mccdata/mcc13/CLM.DETAIL Not a filename : /mccdata/mcc13/CLM.DETAIL Sure, you can use full paths in attribute 2 or 3 of Unidata VOCS. We make extensive use of @UDTHOME on our dev box. We have a development env, Systems and Acceptance, End To End and a training environment on the same server. We have a UNIX shell script that prompts a logged in user which environment they want to go to. From a maintenance stand point, the VOC's for all these environments are the same, using @UDTHOME. But the shell script sets a different $UDTHOME, so each environment has its own unique sets of the files. To see what your UDTHOME home is set to, do a !echo $UDTHOME at ECL. Hardcoded paths would make the maintenance of these environments a major headache. So I see @UDTHOME as a major blessing. - Rod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Preece Sent: Thursday, January 19, 2006 2:15 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UD] Referencing remote file directly I think not. This is often mentioned as one of the differences. I assume you'ved used indexinfocus to search? From: Bill Haskett [EMAIL PROTECTED] Reply-To: u2-users@listserver.u2ug.org To: u2-users@listserver.u2ug.org Subject: [U2] [UD] Referencing remote file directly Date: Wed, 18 Jan 2006 20:57:32 -0800 I can't find the old discussions of this but can one reference a remote file directly in UniData. For instance, can I: :LIST D:\IBM\ud71\sys\VOC instead of needing a link like: 001 F 002 @UDTHOME\sys\VOC 002 @UDTHOME\sys\D_VOC ? Any help would be appreciated. :-) Bill Haskett --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UD] Referencing remote file directly
Hi Bill From: Bill Haskett [EMAIL PROTECTED] Reply-To: u2-users@listserver.u2ug.org To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UD] Referencing remote file directly Date: Thu, 19 Jan 2006 16:13:53 -0800 Rodney: Thanks. I was thinking this was true. U2 does allow direct reference to an O/S path from within BASIC, e.g: OPEN 'DOS:E:\IBM\ud71\sys\BP' TO BP.FV ... (in D3) OSOPEN 'E:\IBM\ud71\sys\BP' TO BP.FV...(in UD) I'm not sure this is what you want really. If you OSOPEN a file you're opening it as a sequential file aren't you - so that you can then go on and READSEQ from it? It's as though you're opening a connection to a tape drive, and therefore you are limited to processing it in sequential order. I don't think you'll be able to READ REC FROM BP.FV,MYPROG... I could be wrong... Mike. OPENPATH 'E:\IBM\ud71\sys\BP' TO BP.FV... (in UV) I can do this (assuming I have permissions) in DOS or Linux by: dir e:\IBM\ud71\sys\BP or #ls -al /ourdir/ourbankdata D3 allows such direct O/S reference from TCL, like: :LIST DOS:E:\IBM\ud71\sys\BP or :LIST UNIX:/ourdir/ourbankdata Or to a file within a different D3 account by: :LIST PAYROLL,EMPLOYEE,2004, or :LIST DM,BP, This would one less layer of stuff we'd have to go through when installing and configuring our application and I'm thinking: less is more (or where is the MV2006 standard). :-) Thanks again. Maybe this would be a good enhancement request. :-) Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Baakkonen, Rodney A (Rod) 46K Sent: Thursday, January 19, 2006 1:15 AM To: 'u2-users@listserver.u2ug.org' Subject: RE: [U2] [UD] Referencing remote file directly Sorry late night. I did not see you want to do a LIST using the full path. You do need a VOC pointer in Unidata. Even ecltype u says a direct reference is not a file name list /mccdata/mcc13/CLM.DETAIL Not a filename : /mccdata/mcc13/CLM.DETAIL Sure, you can use full paths in attribute 2 or 3 of Unidata VOCS. We make extensive use of @UDTHOME on our dev box. We have a development env, Systems and Acceptance, End To End and a training environment on the same server. We have a UNIX shell script that prompts a logged in user which environment they want to go to. From a maintenance stand point, the VOC's for all these environments are the same, using @UDTHOME. But the shell script sets a different $UDTHOME, so each environment has its own unique sets of the files. To see what your UDTHOME home is set to, do a !echo $UDTHOME at ECL. Hardcoded paths would make the maintenance of these environments a major headache. So I see @UDTHOME as a major blessing. - Rod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Preece Sent: Thursday, January 19, 2006 2:15 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UD] Referencing remote file directly I think not. This is often mentioned as one of the differences. I assume you'ved used indexinfocus to search? From: Bill Haskett [EMAIL PROTECTED] Reply-To: u2-users@listserver.u2ug.org To: u2-users@listserver.u2ug.org Subject: [U2] [UD] Referencing remote file directly Date: Wed, 18 Jan 2006 20:57:32 -0800 I can't find the old discussions of this but can one reference a remote file directly in UniData. For instance, can I: :LIST D:\IBM\ud71\sys\VOC instead of needing a link like: 001 F 002 @UDTHOME\sys\VOC 002 @UDTHOME\sys\D_VOC ? Any help would be appreciated. :-) Bill Haskett --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ _ New year, new job there's more than 100,00 jobs at SEEK http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau_t=752315885_r=Jan05_tagline_m=EXT --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UD] Referencing remote file directly
Thanks Mike. I'll soon find out how to read and write files from/to the O/S file system. As we know, with D3 there's no difference so one uses the same, standard, file I/O statements. :-) Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Preece Sent: Thursday, January 19, 2006 4:43 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UD] Referencing remote file directly Hi Bill From: Bill Haskett [EMAIL PROTECTED] Reply-To: u2-users@listserver.u2ug.org To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UD] Referencing remote file directly Date: Thu, 19 Jan 2006 16:13:53 -0800 Rodney: Thanks. I was thinking this was true. U2 does allow direct reference to an O/S path from within BASIC, e.g: OPEN 'DOS:E:\IBM\ud71\sys\BP' TO BP.FV ... (in D3) OSOPEN 'E:\IBM\ud71\sys\BP' TO BP.FV...(in UD) I'm not sure this is what you want really. If you OSOPEN a file you're opening it as a sequential file aren't you - so that you can then go on and READSEQ from it? It's as though you're opening a connection to a tape drive, and therefore you are limited to processing it in sequential order. I don't think you'll be able to READ REC FROM BP.FV,MYPROG... I could be wrong... Mike. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/