Setting Timestamp

I read a file using timestamp, to read from a specific date/time.


01 #START-TIMESTAMP (T)
END-DEFINE
*
MOVE E’2006-12-01 00:00:01’ TO #START-TIMESTAMP
READ FILE BY TIMESTAMP STARTING FROM #START-TIMESTAMP :roll:


I would like to set up date and time as variables so I don’t have to stow the program each i change the date and time. How do I set this up.

If I understand your question, you have basically solved it already.

Assume you are putting up a Map and asking a user for a starting date and time.

Read this information into Alpha Variables; COMPRESS (or MOVE, or have them REDEFINED as part of a single larger variable) the two separate variables into a single variable, say #alpha-start-timestamp; then use MOVE EDITED to create #start-timestamp.

steve


01 #START-TIMESTAMP (T) 
END-DEFINE 
* 
INPUT #START-TIMESTAMP (EM=YYYY-MM-DD^HH:II:SS) /* use this for example
READ FILE BY TIMESTAMP STARTING FROM #START-TIMESTAMP