Jump to content


Click the link below to see the new game I'm developing!


Photo
- - - - -

Any ALIAS command improvements?


7 replies to this topic

#1 Chris Pepper

Chris Pepper

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:United Kingdom

Posted 11 February 2011 - 02:20 PM

Does anyone know of any improvements to the ALIAS command in versions 6, 7, 8?

Specifically, is it still restricted to 40 characters? Is the Upper case conversion problem fixed? (Unix/Linux related)

#2 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

Posted 11 February 2011 - 02:47 PM

Chris

Can you provide me with example syntax of what does not work and I will try it out on 6.2

Daz

Does anyone know of any improvements to the ALIAS command in versions 6, 7, 8?

Specifically, is it still restricted to 40 characters? Is the Upper case conversion problem fixed? (Unix/Linux related)


Things should be made as simple as possible, but not simpler

#3 Chris Pepper

Chris Pepper

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:United Kingdom

Posted 11 February 2011 - 07:34 PM

Assume you have as standard sequential file. Created with some random text.

Set up a Function to read the file with a total path length > 40 characters. Obviously this will depend on your environment.

e.g. /thisdirectory/thispath/thissubdir/somefile.txt (anything as long as it is > 40 characters).

Then to read it..
$$THEPATH = "/thisdirectory/thispath/thissubdir/somefile.txt"
ALIAS('FILEDEF',$$THEPATH)

On my systems it truncates at 40 characters (the same as the max length of ALTERNATE on the starndard boots.

For the Caps problem, just do the same but include mixed case in the string eg:
$$THEPATH = "/ThisDirectory/ThisSubdir/somefile.txt"

On my versions they all get converted to lower case by ProIV so it would attempt to access /thisdirectory/thissubdir/somefile.txt

Thanks!

#4 Rick Young

Rick Young

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 266 posts
  • Gender:Male
  • Location:Guelph, Canada

Posted 11 February 2011 - 07:48 PM

This worked for me:
$$PATH = '/u00/tmp/longdirname22/SecondLongDirName41/'
$FILE = 'test.txt'
$$FILENAME = $$PATH + $FILE
ALIAS('ASCII',$$FILENAME)

I read filedef ASCII, and threw in a UMSG - and got the contents of my test.txt

6.2.35 kernel on HP-UX 11iv2

-Rick


Assume you have as standard sequential file. Created with some random text.

Set up a Function to read the file with a total path length > 40 characters. Obviously this will depend on your environment.

e.g. /thisdirectory/thispath/thissubdir/somefile.txt (anything as long as it is > 40 characters).

Then to read it..
$$THEPATH = "/thisdirectory/thispath/thissubdir/somefile.txt"
ALIAS('FILEDEF',$$THEPATH)

On my systems it truncates at 40 characters (the same as the max length of ALTERNATE on the starndard boots.

For the Caps problem, just do the same but include mixed case in the string eg:
$$THEPATH = "/ThisDirectory/ThisSubdir/somefile.txt"

On my versions they all get converted to lower case by ProIV so it would attempt to access /thisdirectory/thissubdir/somefile.txt

Thanks!



#5 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

Posted 11 February 2011 - 07:51 PM

Hey Rick. You are fast. I will try it out myself to confirm but I think Chris has his answer.

Daz
Things should be made as simple as possible, but not simpler

#6 Rick Young

Rick Young

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 266 posts
  • Gender:Male
  • Location:Guelph, Canada

Posted 11 February 2011 - 07:54 PM

Hey Rick. You are fast. I will try it out myself to confirm but I think Chris has his answer.

Daz



So long as I never hear those words from my wife, I'm happy :)

By sheer coincidence, I was just testing a couple of things, and had come to put my own seemingly unrelated question, when I saw Chris' post.

-Rick

#7 Glenn Meyers

Glenn Meyers

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 221 posts
  • Gender:Male
  • Location:St. Louis, MO, United States
  • Interests:I also raise African Gray Parrots and build hot rod automobiles.

Posted 11 February 2011 - 09:16 PM

My wife told me that the difference between a husband and a lover was about 45 minutes.

#8 Chris Pepper

Chris Pepper

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:United Kingdom

Posted 13 February 2011 - 09:35 PM

:) Thanks guys! (My wife is currently about 4 hours flying time south of me at the moment so I can't check up on any other tips :ermm: !)



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Click the link below to see the new game I'm developing!