DOCPASSL The first step in the conversion of word processing documents from the WANG to MASS-11 was to find all password protected documents and all damaged documents in the library. This step was done prior to the actual conversion so that a printout could be generated listing all of the password protected documents and damaged documents. This allowed time for document recovery and assignment of password documents to the VAX usernames. 1). DOCPASSL.COB opens each word processing document with the WANG WPOPEN call. If the document is password protected the file status from the open is 1153. The program can open the document as a data processing file and extract the password then the WPOPEN call will be successful. The program prints a report using a combination of information from the WPOPEN routine and system calls from USERSUBS to get information about each password protected word processing document in a library. A data file is generated of all password protected documents which can be transferred to the VAX using TAPECOPY on the WANG. This file was edited on the VAX and the VAX username of the owner was inserted. 2). If the WPOPEN call gets a bad return code other than password protected(1153), it writes a record to a file called BADDOC. This file can be displayed and each document ran through word processing recovery before the actual conversion. 3) This program must be linked with the WANG word processing calls (&LINKLIB) and READFDR and UPDATFDR (USERSUBS). CONVERSION The word processing conversion was done using a program called M11CALL.COB This program was written as a callable routine from one of two other programs. M11ASK.COB converts one document at a time and asks for the specific doument number and library. M11LIB.COB converts all the documents in a library. M11CALL accepts the document number, library, and volume from either of the calling programs. 1). The WPOPEN return will tell the program whether or not this document was password protected (return code = 1153). All non-password protected documents were converted into data processing files in one library (JGMDATA) and all password protected documents were converted to data processing files in a different library (PWDDATA). 2). If the return code was other than good open ( < 7) or password protected (1153), the return code was sent back to the calling program and the document was skipped. 3). The first record written to each data processing file contains basic information about the document. This includes the document number, title, author, creation date & time, last modify date, character set (for greek and scientific characters), and print information like lines/page, first header and footer pages, etc. 4). The program identified whether the document had work pages, header pages, and/or footer pages. M11CALL inserted these pages at the appropriate place in the converted data processing file. 5). This program must be linked with the WANG word processing calls (&LINKLIB) and READFDR and UPDATFDR (USERSUBS). M11ASK calls M11CALL for the requested document. If the document is bad the program displays the document number and document return code. It needs to be linked with both &LINKLIB, USERSUBS as libraries and M11CALL as a file. M11LIB uses the WPDOCLIB to get each document number in a library. It calls M11CALL and receives in return the WPOPEN or WPREAD return code. If the return code is bad a record is written to a file called BADDOC. It needs to be linked with both &LINKLIB, USERSUBS as libraries and M11CALL as a file. TAPEMANM is a command procedure to copy all of the files from a specific library to nonlabeled magnetic tape. This procedure deletes each file after it copies it. If there are more files than will fit on one tape, the procedure will stop and can be continued by rerunning using a new tape number.