Good morning all,
I am trying to export a specific dimension to a text file. Issue I am running into is I need it to be sorted by stamp as it will be used for CPk calculations. With the code below I am only getting export to the very last file "Stamp P". I know I am missing an else or end but I am not sure what/where to use. Variable "PID" is the stamp info pulled from earlier in the program.
$$ NO, ASSIGN/EXPORT="" IF/PID=="Stamp A" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp A.txt" END_IF/ IF/PID=="Stamp B" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp B.txt" END_IF/ IF/PID=="Stamp C" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp C.txt" END_IF/ IF/PID=="Stamp D" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp D.txt" END_IF/ IF/PID=="Stamp E" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp E.txt" END_IF/ IF/PID=="Stamp F" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp F.txt" END_IF/ IF/PID=="Stamp G" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp G.txt" END_IF/ IF/PID=="Stamp H" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp H.txt" END_IF/ IF/PID=="Stamp I" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp I.txt" END_IF/ IF/PID=="Stamp J" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp J.txt" END_IF/ IF/PID=="Stamp K" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp K.txt" END_IF/ IF/PID=="Stamp L" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp L.txt" END_IF/ IF/PID=="Stamp M" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp M.txt" END_IF/ IF/PID=="Stamp N" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp N.txt" END_IF/ IF/PID=="Stamp O" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp O.txt" END_IF/ IF/PID=="Stamp P" ASSIGN/EXPORT="C:\Users\user\Desktop\part Cap Study\Exports\Stamp P.txt" END_IF/ $$ NO, $$ NO, FPTR =FILE/OPEN,EXPORT,APPEND FILE/WRITELINE,FPTR,DIM_28.X.MEAS FILE/CLOSE,FPTR,KEEP
Thanks!