Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EASYTRIEVE Packed Date Field Question

Status
Not open for further replies.

jjc3397

Programmer
Dec 21, 2003
55
US
I have a program written in Easytrieve that has a Date Field set us as a Packed Field with 4 characters. This field is called ISS-DT and is written like this:

ISS-DT 25 4 P

How would you write an IF Statement that will pull records from 010104 to 033104?
 
ws-temp-date w 8 n



assuming that the date has been stored in yymmdd format:
ws-temp-date = iss-dt
if ws-temp-date > 040100 and ws-temp-date < 040332
put output file from input file
go to job
else
go to job.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top