THE WELCH COMPANY
440 Davis Court #1602
San Francisco, CA 94111-2496
415 781 5700
rodwelch@pacbell.net


S U M M A R Y


DIARY: February 2, 2003 12:08 PM Sunday; Rod Welch

Start command applied to 0608 and 070405 for HTML conversion.

1...Summary/Objective
2...SDS Record Conversion to HTML Crashes for Large Files
3...Prior Solutions Have Used Nested Sessions and Segmented the Record
4...0608 Windows Start Call 070405 to Save Memory
5...070405.BAT Start New Window with 634K of RAM
6...070405 New Subroutine Called for Windows Start Command
7...Citation and Anchor Conversion Significantly Expand Use of Memory


..............
Click here to comment!

CONTACTS 
0201 - Intel Corporation                                                                                                                                                  O-00000704 0201
020101 - Mr. Morris E. Jones; Business Unit Manager
020103 - Cable Network Operation                                                                                                                                          O-00000704 0201

SUBJECTS
Launch Other Programs from Within SDS Using Windows Start Command
Start Other Programs from Within SDS Using Windows Start Command
Start Windows Command Launches Other Programs Called with DOSE /C Ope
Start Command Launches Separate Session Used with CMD Command
CMD /C Exit Needed in Batch File
Instructions to Use Start with CMD and DOS Batch Files
Start CMD DOS Batch Can Save Memory by Opening Separate Window
Help DOS Listed Under Windows 2000 Command Reference
Start Windows Command Save Memory Run SDS in Separate Sessions
070405 Called by Windows Start Command by 0608 for Converting SDS Rec
Start Command Windows Improve Memory
070405 Convert SDS Record to HTML Failing on Large Record

2414 -
2414 -    ..
2415 - Summary/Objective
2416 -
241601 - Follow up ref SDS 45 0000, ref SDS 43 0000.
241602 -
241603 - Encountered a new problem with memory converting SDS records to HTML
241604 - on large records, so invested more time configuring an application of
241605 - Windows start command, and may have found something that works
241606 - consistently. ref SDS 0 QR3G  Windows 2000 seems to require using
241607 - start with cmd.exe, which is a new feature that earlier versions don't
241608 - use. Might be possible to substitute command.com for cmd.exe so there
241609 - is uniform support.  The record today may provide experience for
241610 - applying start to work around the memory problem for a short while
241611 - longer. ref SDS 0 TL4L
241612 -
241613 -
241614 -
241615 -
241616 -
241617 -
241618 -
241619 -
241621 -  ..
2417 -
2418 -
2419 - Problem
2420 -
242001 - SDS Record Conversion to HTML Crashes for Large Files
242002 -
242003 - Gary sent a letter today reporting a problem with the outline
242004 - routine, macro 207, shown by the record on 931130 that is starting an
242005 - outline op with p. which is part of a narrative text (for "page"),
242006 - rather than use the next line a. to begin a new ordered list.
242007 - ref SDS 6 3077
242009 -  ..
242010 - The save op called with F2 launches compiled macro 142 that calls
242011 - macro 207 to update outlining, then calls macro file 0702051 to do a
242012 - number of tasks, including add and verify uniqueness of anchors on
242013 - each paragraph, per the record on 030121, ref SDS 48 0001, per Gary's
242014 - request earlier on 030120. ref SDS 47 0001
242016 -  ..
242017 - On 030118 macro 207 was revised to improve outlining.  However, within
242018 - the past few days, additional issues surfaced and so more work was
242019 - done in the record on 030118 to further improve outlining.  These seem
242020 - to solve the problem Gary reports today. ref SDS 46 0001
242022 -  ..
242023 - SDS processing code in macro file 070405 failed today, when the record
242024 - on 931130 was converted to update the version on the Internet that
242025 - displays HTML.  Investigation shows that after converting achors to
242026 - HTML, worked on 021111, ref SDS 38 EA6M, Medit reports an "Out of
242027 - memory" condition.  This indicates changes to macro file 0702051 to
242028 - increase the number of anchors added automtically to a record causes
242029 - memory fragmentation that in turn causes Medit to fail for large files
242030 - like the record on 931130, due to Medit limits of addressing only 1
242031 - MB of memory.
242033 -  ..
242034 - So, the problem to solve is memory.
242035 -
242036 -
242037 -
242038 -
242040 -  ..
2421 -
2422 -
2423 - Background
2424 -
242401 - Prior Solutions Have Used Nested Sessions and Segmented the Record
242402 -
242403 - We have tried two strategies to reduce demand on memory....
242404 -
242405 -    1.  Segment large records into multiple records that are linked
242406 -        together.  Examples include....
242407 -
242408 -        a.  Telecon Ross and Morrison......... 890809, ref SDS 2 0001
242409 -               "      "         "              890809, ref SDS 3 0001
242410 -
242411 -              ....performed on 011117, ref SDS 29 0001
242412 -
242414 -             ..
242415 -        b.  Review Andy Grove's book.......... 980307, ref SDS 15 0001
242416 -               "          "      "             980307, ref SDS 16 0001
242417 -
242418 -              ....performed on 990919. ref SDS 19 0001
242420 -             ..
242421 -        c.  NWO and POIMS both segmented
242422 -            into 5 parts...................... 020811, ref SDS 30 0001
242424 -         ..
242425 -        This has proven effective, but takes about a day for SDS
242426 -        records, mostly to re-asisgn forward links.
242428 -         ..
242429 -    2.  Segment 070405 process into smaller ops run sequentially,
242430 -        reported on 010604. ref SDS 27 0001
242432 -         ..
242433 -        This has worked okay, until today.
242435 -         ..
242436 -        Options we have are to segment 070405 again, or segment the
242437 -        record for 931130.
242439 -  ..
242440 - Today will try another approach using Windows start command based on
242441 - research performed 030109, ref SDS 45 0001, and previously on 030106
242442 - showing that switching to the w2k batch file start command can save
242443 - about 90K of RAM. ref SDS 43 7156
242444 -
242445 -
242446 -
242447 -
242448 -
242449 -
2425 -

SUBJECTS
Memory, Multiple Processors, 070405, 0704051
0608 Calls 070405 to Save Record to Transfer Directory, Maintain Tran
0608 Macro File Management Calls Batch File SD 01 070405 to Use Start
Import from Other Programs Menu External Calls Prototyping to Develop
SDS Records HTML Conversion Macro File 0608 Calls Batch File SD 01 07
070405 Batch File Called by Macro File 0608 to Use Start Command to C
SDS Records Convert to HTML Size Over 1800 Lines Use Secondary Nestin
Start Windows Command Launches Other Programs Called with DOSE /C Ope
Reports Success Using Menu Call to External Programs for Prototyping
Memory Increased HTML Conversion Macro File 0608 Calls Batch File SD
Start Command Batch Operation Apply Windows Environment Variable to S
2-levels 070405 Multi-level Processing Save Memory Avoid Fragments Us

3714 -
371501 -  ..
371502 - 0608  Windows Start Call 070405 to Save Memory
371503 -
371504 - Follow up ref SDS 36 02CC.
371505 -
371506 - Modified the code today by switching from standard Medit dose call to
371507 - using dose for calling a batch file that uses the Windows start
371508 - command opening another session of additional and fresh memory based
371509 - on guidance in the record on 030106. ref SDS 43 GO54  As shown on
371510 - 030106, this adds 90K of RAM for processing SDS records with 070405,
371511 - ref SDS 43 7156, which is a big help.
371513 -  ..
371514 - Further in the record on 030106 is more information on calling start
371515 - in a batch file. ref SDS 43 PQSU
371517 -  ..
371518 - Line 190, ref OF 3 8148, -label rodcp in 0608
371519 -
371520 -    Unplugged the dose calls to 070405 and put them in a new batch
371521 -    file called as follows....
371522 -
371523 -      dose /c %systemroot%\system32\cmd.exe /C start c:\sd\01\070405.bat
371525 -         ..
371526 -        Trying this new method today of calling a batch file with the
371527 -        start command.
371529 -         ..
371530 -        Using systemroot so the call is generic, however, it seems to
371531 -        be failing.
371533 -         ..
371534 -        So, will try calling the command in a batch file.
371536 -     ..
371537 -    dose /c c:\sd\01\070405.bat
371538 -
371539 -        This calls a simple batch file in 542K of RAM, explained in the
371540 -        next heading.  The batch file launches two consecutive start
371541 -        commands to perform 070405 operations.
371542 -
371544 -  ..
371545 - 070405.BAT   Start New Window with 634K of RAM
371546 -
371547 -    Created a new batch file with....
371548 -
371549 - Line 20, ref OF 5 J03M, in c: sd 01 070405.bat
371550 -
371551 -    %AIR% c:\sd\01\e stufq c:\sd\03\070405
371552 -    REM
371553 -    REM
371554 -    REM
371555 -    %AIR% c:\sd\01\e stufq c:\sd\03\070405 #3
371556 -
371557 -       %AIR% applies Microsoft Windows set command called when SDS is
371558 -       launched by SDS.bat. ref OF 6 LV4K
371560 -        ..
371561 -       AIR set coommand uses Start command "wait" param in the first
371562 -       one so results are available for the second one.
371563 -
371564 -          [On 030420 added alternate set of commands for w98 to solve
371565 -          problem Gary encountered. ref SDS 49 MT6L
371566 -
371567 -
371569 -  ..
371570 - 070405  New Subroutine Called for Windows Start Command
371571 - Citation and Anchor Conversion Significantly Expand Use of Memory
371572 -
371573 - Line 20, ref OF 4 MI4M, in 070405
371574 -
371575 -    -goto level2.............................. ref SDS 0 OI8F
371576 -
371577 -       This is an existing subroutine call that is revised today for
371578 -       applying Windows Start command executed by 070405.bat.
371579 -       ref SDS 0 X26M
371580 -
371581 -          [On 040214 developed level3 processing. ref SDS 51 KS6H
371582 -
371584 -  ..
371585 - Line 2300, ref OF 4 4248, -label cites in 070405
371586 -
371587 -    -label cites
371588 -    save stufq
371589 -    e c:\sd\03\070405
371590 -    purge stufq
371591 -    save
371592 -    quit
371593 -
371594 -        At this point everything has been done except convert links and
371595 -        explicit anchors into HTML code.  Added new processing today
371596 -        that saves changes to the SDS record by writing the file to the
371597 -        disk for processing in another memory segment, and then closes
371598 -        the current session.
371599 -
371601 -  ..
371602 - Line 2320, ref OF 4 673L, -label level2 in 070405
371603 -
371604 -    -label level2................................ ref SDS 0 DF5I
371605 -    top
371606 -    recl 320
371607 -    z 1 3
371608 -    l /03 /
371609 -    linecnt 89 0
371610 -
371611 -        This code is executed in a third memory segment called by batch
371612 -        file 070405.bat, per above. ref SDS 0 X26M
371613 -
371614 -
371615 -
371617 -  ..
371618 - Testing following files show system seems to work....
371619 -
371620 -            Telecon with Morris.........2679.. 890809, ref SDS 3 0001
371622 -             ..
371623 -            Drucker's book..............2889.. 931130, ref SDS 5 0001
371625 -             ..
371626 -            Report on SDS by Wayne......2444.. 010725, ref SDS 28 0001
371628 -  ..
371629 - This provides a template or format for applying other operations to
371630 - the Start command, hopefully working better than shown by research on
371631 - 030109. ref SDS 45 0001 and citing efforts to apply start to 04702
371632 - program launch ops. ref SDS 37 W54J
371633 -
371634 -      [On 030616 applied w2k start command to call 0122 in 0608 for
371635 -      converting documents into HTML. ref SDS 50 0001
371636 -
371637 -
371638 -
371639 -
371640 -
371641 -
371642 -
371643 -
3717 -
Distribution. . . . See "CONTACTS"