home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
chrchpr3.zip
/
BMEMVARS.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1991-01-21
|
2KB
|
55 lines
* Program BMEMVARS - Reads file BDIRFILE to get church budget parameter values
Select secondary
Use BDIRFILE index BDIRFILE
Store 'January February March April May June ' to MONTHS
Store MONTHS+'July August SeptemberOctober November December ' to MONTHS
If $(DATE(),7,2) = '00'
Set date to 01,01,00
ENDIF
Store ' ' to curmonthx
Store ' ' to curyear
Store ' ' to curmonth
* Set today's date from current system-date
Store $(date(),1,2) to curmo
Store $(date(),7,2) to curmonthx
Store val(curmo) to nmonth
Store curmo+curmonthx to indate
Store VAL(curmonthx) to CURYEAR
If $(date(),4,1) = '0'
Store $(DATE(),5,1) to CURMONTHX
else
Store $(DATE(),4,2) to CURMONTHX
endif
Store trim($(months,NMONTH*9-8,9)) to curmonth
Store curmonth+' '+curmonthx to curmonthx
Store ', 19'+$(DATE(),7,2) to CURYEAR
GOTO 1
Store trim($(SPACT,4,27)) to CHNAME
SKIP
Store $(SPACT,21,1) to D
USE
Select primary
Store curmonthx+curyear to curdate
Release months,curmonthx,curmonth,indate,nmonth,curmo,curyear
RETURN
ewpdate,pp OFF
USE
?
Accept ' - END OF ACCOUNTS FILE - press <return>' to xx
CASE MSEL='9'
Do CFBSETUP.CMD
Clear
Store T to vaildd1
Store T to LEVEL1
Do BMEMVARS.CMD
Save to FMEMVARS
CASE !(MSEL) = 'Q'
Store F to LEVEL2
OTHERWISE
Accept 'Illegal selection. Please enter again ' to MSEL
Store F to validd1
ENDCASE
ENDDO
endif
Rest 1283,1283 Morgan Sharon MORS0012 821-2334 8944 56th Ave S. Mpls, MN 55417 11/02/49- Y 47729-8321 C-3 BS,SA,CE" 1283,1283 Morrison Dennis MORD001