파일을 열지 않고 .jmp 파일 행 / 열 수 및 메모에 액세스이 정보는 최소한 Windows에서 JMP Open 파일을 통해 액세스 할 수 있습니다.

JMP 데이터 테이블을 열지 않고 스크립팅을 통해 액세스 할 수 있는지 궁금합니다 ( 데이터 파일 열기 옵션 )?
열 이름은 다음을 사용하여 액세스 할 수 있습니다.
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp", "Column Names Only");
데이터 테이블스크립팅Re : 파일을 열지 않고 .jmp 파일 행 / 열 수 및 메모에 액세스안녕 @jthi ,
JMP의 열린 창 대화 상자에서 해당 정보를 얻는 방법을 모르겠지만 다음과 같이 할 수 있습니다.
Names Default to Here(1);
dt=open("$SAMPLE_DATA/Big Class.jmp", Invisible);
Show(Nrows(dt));
Show(NCols(dt));
Close(dt);로그 창 또는 스크립팅 창의 포함 된 로그에 다음을 반환해야합니다.
N 행 (dt) = 40;
N Cols (dt) = 5;
열기 명령의 "보이지 않음"은 데이터 테이블이 맨 앞으로 나오지 않고 백그라운드에서 숨겨집니다. Show Properties (dt) 명령을 수행하여 데이터 테이블에 대한 훨씬 더 광범위한 정보 목록을 얻을 수도 있습니다.
나는 그것이 당신이 원하는 것이 아니라는 것을 알고 있지만 그것은 일을 할 수 있다고 생각합니다.
DS
Re : 파일을 열지 않고 .jmp 파일 행 / 열 수 및 메모에 액세스"보이지 않음"보다는 "비공개"를 지정하는 것이 좋습니다. 표시 객체를 만들 필요가 없기 때문에 JMP가 어렵게 작동하지 않습니다.Re : 파일을 열지 않고 .jmp 파일 행 / 열 수 및 메모에 액세스오늘 Discovery Summit에서 열린 Meet the Developers 세션에 참석하여 이에 대해 질문했습니다. 이전에 게시 한 것과 같은 솔루션 (열 이름 가져 오기, N Items () 열 수, 하나의 열이 개인 열로 데이터 테이블 열기 및 행 수 N Rows ())이 현재 가장 빠른 방법 인 것 같습니다. 그들은 메모를 남겼으므로 미래에는 개인 데이터 테이블을 열지 않고도 가능하거나 JMP가이를 수행하는 기능을 제공 할 것입니다.
아래는 함수 형식의 스크립트입니다. 그들은 dt_temp에 대해 닫기를 추가 할 것을 제안했습니다. 이 스크립트에는 Wait (0)이 필요할 수 있습니다. 여기저기서,하지만 그것 없이는 작동했기 때문에 나는 아무것도 추가하지 않았습니다.
Names Default To Here(1);
//https://community.jmp.com/t5/Discussions/Accessing-jmp-file-row-col-count-and-notes-without-opening-file/td-p/366316
//Function to get column count, rowcount, table notes and column names to associative array
getTableInfo = function({path_to_table}, {Default Local},
//Check that file exists
If(!File Exists(path_to_table),
return(Associative Array({"error"}, {"File not found"}));
);
//Initialize associative array
retVal = Associative Array(
{"name", "rowCount", "columnCount", "notes", "columnNames"},
{"", 0, 0, "", {}}
);
//Open datatable as columns only list
colNames = Open(path_to_table, "Column Names Only");
//Check that table has atleast one column
If(N Items(colNames) > 0,
retVal["columnNames"] = colNames;
retVal["columnCount"] = N Items(colNames);
dt_temp = Open(path_to_table, Select Columns([1]), Private);
retVal["name"] = dt_temp << get name();
retVal["rowCount"] = N Rows(dt_temp);
);
//Get notes from "Notes" table variable
retVal["notes"] = dt_temp << Get Table Variable("Notes");
Close(dt_temp, no save);
return(retVal);
);
//Examples with tables from $SAMPLE_DATA
aa_probe = getTableInfo("$SAMPLE_DATA/Probe.jmp");
Show(aa_probe["name"],aa_probe["rowCount"], aa_probe["columnCount"], aa_probe["notes"]);
Show(getTableInfo("$SAMPLE_DATA/Alcohol.jmp"));
Show(getTableInfo("$SAMPLE_DATA/Alcohol.jmpmissing"));Re : 파일을 열지 않고 .jmp 파일 행 / 열 수 및 메모에 액세스참석의 이점 중 하나를 강조해 주셔서 감사합니다. 디스커버리 서밋 개발자를 만나고 전문가에게 물어보세요.
대화와 JMP 17의이 게시물의 결과로 데이터 테이블의 행 및 열 수를 가져 오는 JSL 옵션을 추가 할 것입니다. . 브라보!