주 데이터 테이블을 변경하지 않고 데이터 테이블 간 열 복사아래 JSL에서는 서로 다른 데이터 테이블 간에 열을 복사할 수 있습니다. 하지만 `Current Data Table()`을 사용하여 현재 주 데이터 테이블을 변경하고 싶지 않습니다. 현재 주 데이터 테이블을 변경하지 않고 다른 지정된 데이터 테이블에 열을 복사할 수 있도록 수정할 방법이 있을까요?
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt2 = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
dt << New Formula Column(
Operation( Category( "Combine" ), "Ratio" ),
Columns( :height, :weight )
);
script = Column(dt,"height/weight") << get script;
Current data table(dt2);
script;
자동화 및 스크립팅Re: 기본 데이터 테이블을 변경하지 않고 데이터 테이블 간 열 복사예를 들어 Send()를 사용할 수 있습니다.
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt2 = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
dt << New Formula Column(
Operation( Category( "Combine" ), "Ratio" ),
Columns( :height, :weight )
);
script = Column(dt,"height/weight") << get script;
Eval(EvalExpr(Send(dt2, Expr(Name Expr(script)))));