Re : Comment utiliser JSL pour enregistrer les résultats de chaque téléchargement dans une variable différente de cette manière textuelle ? Bonjour!Je n'ai pas de serveur pour tester cela, mais est-ce que quelque chose comme ça fonctionnerait?
/*JMP STATISTICAL DISCOVERY LLC (“JMP”) PERMITS THE USE OF THIS COMPUTER SOFTWARE CODE (“CODE”) ON AN AS-IS BASIS AND AUTHORIZES YOU TO USE THE CODE SUBJECT TO THE TERMS LISTED HEREIN. BY USING THE CODE, YOU AGREE TO THESE TERMS. YOUR USE OF THE CODE IS AT YOUR OWN RISK. JMP MAKES NO REPRESENTATION OR WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRIGEMENT, AND TITLE, WITH RESPECT TO THE CODE.
You may use the Code solely as part of a software product you currently have licensed from JMP, JMP’s parent company SAS Institute Inc. (“SAS”), or one of JMP’s or SAS’s subsidiaries or authorized agents (the “Software”), and not for any other purpose. The Code is designed to add functionality to the Software but has not necessarily been tested. Accordingly, JMP makes no representation or warranty that the Code will operate error-free. JMP is under no obligation to maintain, support, or continue to distribute the Code.
Neither JMP nor its licensors shall be liable to you or any third-party for any general, special, direct, indirect, consequential, incidental, or other damages whatsoever arising out of or related to your use or inability to use the Code, even if JMP has been advised of the possibility of such damages. Except as otherwise provided above, the Code is governed by the same agreement that governs the Software. If you do not have an existing agreement with JMP or SAS governing the Software, you may not use the Code.
JMP and all other JMP Statistical Discovery LLC product or service names are registered trademarks or trademarks of JMP Statistical Discovery LLC in the USA and other countries. ® indicates USA registration. Other brand and product names are registered trademarks or trademarks of their respective companies.
*/
lstResults = {};
for each ({i}, 1::60,
u = ""||char(i); //add number to end of URL
rs = New HTTP Request (URL(u), Method("GET")) << send; //store results in rs
insert into (lstResults, Parse JSON(rs)) //add parsed rs to main list
);Re : Comment utiliser JSL pour enregistrer les résultats de chaque téléchargement dans une variable différente de cette manière textuelle ? Bonjour!Je voulais utiliser cette méthode pour les téléchargements simultanés de JMP 17. Comment modifier JSL. Merci!
For( i = 1, i <= 60, i++,
u = {};
For( j = 1, j <= N Row( d9 ), j++,
gm = d9[j, "code"];
Insert Into( u, "http://xxx……code=" || gm );
);
rqs = New Multi HTTP Request();
For( i = 1, i <= N Items( u ), i++,
rq = New HTTP Request( Method( "GET" ), URL( u[i] ) );
Eval( Parse( "txt" || Char( i ) || "=" || rs << Send ) );//??
//rqs << Add( rq );
);
hh = rqs << Get Requests();
da = rqs << Download( "show progress", "detailed" );
……
);Re : Comment utiliser JSL pour enregistrer les résultats de chaque téléchargement dans une variable différente de cette manière textuelle ? Bonjour!Les messages ne peuvent pas être modifiés ?
Ce code est faux
Devrait être
u = {};
For( j = 1, j <= N Row( d9 ), j++,
gm = d9[j, "code"];
Insert Into( u, "http://xxx……code=" || gm );
);
rqs = New Multi HTTP Request();
For( i = 1, i <= N Items( u ), i++,
rq = New HTTP Request( Method( "GET" ), URL( u[i] ) );
Eval( Parse( "txt" || Char( i ) || "=" || rs << Send ) );//??
//rqs << Add( rq );
);
hh = rqs << Get Requests();
da = rqs << Download( "show progress", "detailed" );</CODE></PRE></LINGO-BODY><LINGO-SUB id="lingo-sub-633131" slang="en-US" mode="NONE">Re : Comment utiliser JSL pour enregistrer les résultats de chaque téléchargement dans une variable différente de cette manière textuelle ? Bonjour!</LINGO-SUB><LINGO-BODY id="lingo-body-633131" slang="en-US" mode="NONE"><P>Salut<A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17251" target="_blank"> @lala</A> ,</P>
<P> </P>
<P>Vous pouvez modifier le sujet d'origine en cliquant sur le triangle à gauche du titre.</P>
<P> </P>
<P>Vous pouvez modifier une réponse en cliquant sur le triangle à droite de la date.</P>
<P> </P>
<P>J'espère que cela pourra aider.</P>
<P> </P>
<P>Ryan</P></LINGO-BODY><LINGO-SUB id="lingo-sub-633630" slang="en-US" mode="NONE">Re : Comment utiliser JSL pour enregistrer les résultats de chaque téléchargement dans une variable différente de cette manière textuelle ? Bonjour!</LINGO-SUB><LINGO-BODY id="lingo-body-633630" slang="en-US" mode="NONE"><P class=""> </P><P class=""><SPAN class="">Merci!</SPAN></P><P class=""> </P></LINGO-BODY><LINGO-SUB id="lingo-sub-632720" slang="en-US" mode="NONE">Comment utiliser JSL pour enregistrer les résultats de chaque téléchargement dans une variable différente de cette manière textuelle ? Bonjour!</LINGO-SUB><LINGO-BODY id="lingo-body-632720" slang="en-US" mode="NONE"><P>Bonjour!<BR /> Définir cette URL peut augmenter le numéro de série de manière circulaire peut télécharger différentes données, comment réaliser la génération automatique de différentes variables pour enregistrer chaque résultat de téléchargement différent ?<BR /> Merci!</P><PRE><CODE class=" language-jsl">For( i = 1, i <= 60, i++,
u = "" || Char( i );
rs = New HTTP Request( Url( u ), Method( "GET" ) );
Eval( Parse( "txt" || Char( i ) || "=" || rs << Send ) );//??
Show( txt1 );
//txt1 = rs << Send;
);
Partage et communication des résultatsles fenêtres