petermoessinger has asked for the wisdom of the Perl Monks concerning the following question:
I don't know why this doesn't work. Is it the key or the file? In principle vsamlocate is only a call of flocate(). Can you help please?use strict; use warnings; use OS390::Stdio qw( :CONSTANTS :FUNCTIONS ); my $fh = mvsopen("//'FILE.NAME'", "rb") or die $!; my $key = "THIS IS THE KEY"; my $key_ptr = pack( 'P15', $key ); my $ret = vsamlocate( $fh, $key_ptr, 15, KEY_GE ) or die $!;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OS390 VSAM-files
by BrowserUk (Patriarch) on Jan 09, 2006 at 16:02 UTC | |
by petermoessinger (Initiate) on Jan 10, 2006 at 12:33 UTC | |
by BrowserUk (Patriarch) on Jan 10, 2006 at 14:06 UTC | |
by petermoessinger (Initiate) on Jan 11, 2006 at 13:26 UTC | |
|
Re: OS390 VSAM-files
by rinceWind (Monsignor) on Jan 09, 2006 at 15:38 UTC | |
by petermoessinger (Initiate) on Jan 09, 2006 at 17:12 UTC | |
by BrowserUk (Patriarch) on Jan 09, 2006 at 19:07 UTC |