Showing assigned variables in a report

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

  • Showing assigned variables in a report

    I'm trying to streamline the data input before our production parts are run. To do this I'm trying to set values I know wont change from day to day (part number, Rev, etc) to variables so they can be recalled in reports. Currently we use Input Comments to enter every little detail, including those that never change, so we end up hitting Return up to 14 times, when around 2 items are even edited.

    I started with automating the date, and got nowhere. Here is what I've tried so far:

    STARTUP =ALIGNMENT/START,RECALL:,LIST=YES
    ALIGNMENT/END
    STATS/ON,DATAPAGE,$
    DIRECTORY=,$
    READ=10,WRITE=20,MEMPAGES=4,FEATURE NAME,CONTROLCALC OFF,$
    STATS/END
    COMMENT/REPT,INSPECTION PERFORMED AT DI HED YOKES
    ASSIGN/C1 = SYSTEMDATE("MM/dd/yy")
    TRACEFIELD/NO_DISPLAY,LIMIT=15 ; DATE : C1


    The report will run, but I can't seem to find a way to get the DATE to print in the report window. It works if I put SYSTEMDATE() into a Report Comment, but if I change to DATE: SYSTEMDATE() then I just get either a zero or just the text (depending on the space between : and SYSTEMDATE). Any ideas would be most appreciated. Thanks.
    Who am I, where am I, what's going on?

  • #2
    You might need to cacatenate it (+) I'd also throw the string in quotes to be safe

    Code:
    "DATE: " + SYSTEMDATE()
    I'm not sure if that is the answer or not I'm just guessing.

    Craig
    <internet bumper sticker goes here>

    Comment


    • #3
      Seems to work exactly like I needed it too, thanks again.
      Who am I, where am I, what's going on?

      Comment


      • #4
        We do the same thing here. I know you got your to work but I thought I would just add another option. Here is the header portion of one of our programs.
        ASSIGN/V1 = SYSTEMTIME("' 'hh':'mm':'ss")
        ASSIGN/V2 = SYSTEMDATE("yyyy' 'MM' 'dd")
        ASSIGN/V3 = ("5L34-16101110AB & 5L34-1610111AB")
        ASSIGN/V4 = ("MBR ASY FLR SD INR CREW CAB")
        ASSIGN/V5 = ("FIXTURE#1510 & 1511 LAYOUT")
        ASSIGN/V6 = ("FORD")
        ASSIGN/V7 = ("04NO03 AB")
        ASSIGN/V8 = ("5L34-1610110-AB-V9.IGS & 5L34-1610111-AB-V9.IGS")
        ASSIGN/V9 = ("L.HERLEIN")
        COMMENT/REPT,"PART NUMBER : " +V3
        COMMENT/REPT,"PART NAME : " +V4
        COMMENT/REPT,"IDENTIFIER : " +V5
        COMMENT/REPT,"CUSTOMER : " +V6
        COMMENT/REPT,"ENG.LEVEL : " +V7
        COMMENT/REPT,"INSPECTED TO : " +V8
        COMMENT/REPT,"INSPECTED BY : " +V9
        COMMENT/REPT,"INSPECTION DATE : " +V2
        Thanks
        Sean Steele

        Comment

        Related Topics

        Collapse

        Working...
        X