hexagon logo

Printing reports with serial # as file name.

I output a PDF report for every part I check and I currently use auto indexing to name them. There is a report comment at the beginning of the program that asks for the serial # of the part. I was wondering if it's possible to instead have PC DMIS automatically add that same serial # to the end of the file name instead of the index #. This would be helpful if I need to find the report for a specific piece later. I know I could just manually type it in each time. I'm just looking for a more efficient method since the serial #'s are often over 20 characters and I never remember what it was at the end of the program and I'd rather not take it off the machine before viewing the report in case I need to remeasure something. Am I asking too much here?
Parents
  • I think I may have gotten it to work by using "overwrite" instead of "auto."

    ASSIGN/V1=C5.INPUT
    PRINT/REPORT,EXEC MODE=END,$
    TO_FILE=ON,OVERWRITE="W:\pc-dmis files\McBride\validator data\146-3091 complete 2_"+V1,AUTO OPEN REPORT=OFF,$
    TO_PRINTER=OFF,COPIES=1,$
    TO_DMIS_REPORT=OFF,FILE_OPTION=OVERWRITE,FILENAME= ,$
    REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMEN SIONS=NO,$
    TO_EXCEL_OUTPUT=OFF,
    PREVIOUS_RUNS=DELETE_INSTANCES​
    
Reply
  • I think I may have gotten it to work by using "overwrite" instead of "auto."

    ASSIGN/V1=C5.INPUT
    PRINT/REPORT,EXEC MODE=END,$
    TO_FILE=ON,OVERWRITE="W:\pc-dmis files\McBride\validator data\146-3091 complete 2_"+V1,AUTO OPEN REPORT=OFF,$
    TO_PRINTER=OFF,COPIES=1,$
    TO_DMIS_REPORT=OFF,FILE_OPTION=OVERWRITE,FILENAME= ,$
    REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMEN SIONS=NO,$
    TO_EXCEL_OUTPUT=OFF,
    PREVIOUS_RUNS=DELETE_INSTANCES​
    
Children
No Data