auto save report

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • auto save report

    how to simplify it so it is more simple


    TRACEFIELD/DISPLAY,LIMIT=15 ; BATCH NUMBER :
    TRACEFIELD/DISPLAY,LIMIT=25 ; REPORT NUMBER : CMM2-J-19
    TRACEFIELD/DISPLAY,LIMIT=25 ; OP NUMBER :
    ASSIGN/REPOR=GETCOMMAND("TRACE FIELD", "UP", 2)
    ASSIGN/REPORT=GETTEXT ("TRACE_VALUE", 1, REPOR)
    ASSIGN/MC=LEFT(REPORT,4)
    ASSIGN/MC_=RIGHT(MC,1)
    ASSIGN/MONTH=SYSTEMDATE("MMMM")
    SELECT/MC_
    CASE/1
    ASSIGN/DATA="\\\IBD1BQA015\CMM_DATA\CMM REPORT TRANSFER" +"\
    END_CASE/
    CASE/2
    ASSIGN/DATA="\\\IDIBDDT806PW5G\CMM_DATA\TEMPORARY REPORT TRANSFER" +"\
    END_CASE/
    CASE/3
    ASSIGN/DATA="E:\PCDMIS FOLDER\REPORT\2020\MAY" +"\
    END_CASE/
    END_SELECT/
    ASSIGN/VR1=DATA+REPORT +"
    PRINT/REPORT,EXEC MODE=END,$
    TO_FILE=ON,APPEND=VR1,AUTO OPEN REPORT=OFF,$
    TO_PRINTER=OFF,COPIES=1,$
    TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
    REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMEN SIONS=NO,$
    TO_EXCEL_OUTPUT=OFF,
    PREVIOUS_RUNS=DELETE_INSTANCES

  • #2
    Hi,
    Probably you will not simplify code by itself. If you will use TRACEFIELD in CMM program and all rest will move to BASIC SCRIPT then CMM program will have one command as link to script and script will be safe from accidental modifications plus in future if you need change something, changes will apply to all programs which contain link to script.

    Comment


    • #3
      The script already export to basic script and make a shotcut for making a new program, then just one click for insert to program

      Comment

      Related Topics

      Collapse

      Working...
      X