プロキシ経由でインターネットにアクセスするインターネットからJMPを使用してプロキシを介してスクリプトを使用してファイルを(データテーブルとして開くことなく)正常にダウンロードしたことがありますか?もしそうなら、どのようにあなたはそれをしましたか?
たとえば、どうすればダウンロードできますか。 SASロゴプロキシの背後にある間私のコンピュータ上のファイルに?
再:プロキシを介してインターネットにアクセスする素晴らしいです、私はあなたのダウンロードしているJMPのロゴをSASの代わりに受け入れるでしょう。 これはタスクスケジューラから呼び出されたスクリプトでも機能するようです。 私の単純な要件は、ここで私が着陸したものです。
FileDownload = Function( { sourceurl, destpath },
{ download, temppath, result},
result = 0; //Set to 1 if successfull
Try(
// Download file as a zip (saves the file to a temporary
// location and waits for commands)
download = Open( sourceurl , zip );
// grab the temporary filename
temppath = Parse( Regex( Char( download ), "\!"[^\!"]+\!"" ) );
// Move the file to its new location
If( Move File( temppath, destpath ) == 1, result = 1 );
);
return(result);
);
FileDownload( "https://www.sas.com/profile/ui/images/logos/jmp.png", "$temp/jmplogo.png" );
Open( "$temp" );ありがとう @Craige_Hales そして @Justin_Chilton
再:プロキシを介してインターネットにアクセスするこれを試して; JMP 12より前では機能しませんが、12と13の両方で機能するようです。副作用があります @Justin_Chilton 最近私に指摘した。あなたが複数の場所からそれを呼び出す必要があるならば、あなたはこれから関数を作るべきです。
// work-around. Load Text File("https:...", blob) should be able to
// do this, but currently the blob support only works for disk files.
//
// pretend the file is a zip file. it will be downloaded to await
// zip archive commands, but we won't actually use them.
download = Open( "https://www.sas.com/profile/ui/images/logos/jmp.png", zip );
// grab the temporary filename
file = Parse( Regex( Char( download ), "\!"[^\!"]+\!"" ) );
// *now* use Load Text File to access the binary data
binary = Load Text File( file, blob );
// the open function can use a binary blob if it is told the type
image = Open( binary, "png" );
// finally, show the image
New Window( "image", image );再:プロキシを介してインターネットにアクセスするこんにちはピーター、
ファイルを開くのではなくダウンロードするためのスクリプトソリューションを探していると指定したはずです。それを反映するように質問を更新しました。 Internet OpenはInternet Explorerからプロキシ情報を取得しているように見えますが、この場合はファイルを開く前に操作する必要があります。
再:プロキシを介してインターネットにアクセスする私はこれがあなたが何を求めているのかわからないが、インターネットまたはリモートコンピュータからファイルをダウンロードするための一般的なJMPシステムドキュメンテーションはJMPオンラインシステムドキュメンテーションにここに含まれる:
http://www.jmp.com/support/help/13-2/Import_Data_from_the_Internet_or_a_Remote_Comput.shtml