Date: Wed, 16 Jun 1999 17:47:44 -0500 (CDT) From: MARK JACOBSON Subject: No LABELS clauses... To: 810-034-01@uni.edu Hi Visual Basic students, <-- Oops! COBOL students, not VB students! Do NOT use the LABELS clauses for COBOL. LABELS ARE STANDARD or LABELS ARE OMITTED clauses are NOT needed for disk files on modern operating systems. --- We will talk about labels when we get to the file processing portion of the course in July. Magnetic tape files (as opposed to those stored on disk drives or on your diskettes) sometimes still require that the COBOL programmer tell in the program whether the magnetic tape has Standard labels or if labels are omitted or if the Labels are a specialized non-standard type of labes. Also, the name of the data file is: c0407.dat and should be in your cobol folder (subdirectory). The name of the input data file is c ZERO FOUR ZERO SEVEN dot dat c 0 4 0 7 . dat Make sure to use 0 instead of O, i.e. ZERO instead of OH. When you login to the chaos computer, type h or type history - ------- and see the commands you did on Monday in the lab class. cd cobol <---- Moves you down into your cobol folder ls <---- Shows you your files and file names pico prog1.cob <---- To create or to continue working on the the program 1 assignment. cobol prog1.cob <---- To compile it and create prog1.lst, and if you are lucky, prog1.run runcbl prog1.run <---- To run your program, if it compiled OK. ls <---- To see if output file got created ls -l <---- To see size of output file and date/time too. more NEWMASTER <---- To look at NEWMASTER file that was created. See next 3 lines for why " more NEWMASTER " Select New-Master-Out Assign To "NEWMASTER" <------ This name can be WHATEVER in " " Organization is Line Sequential. -------- ------------------------------- I will be glad to answer questions about the Friday assignment before and during class tommorrow, so feel free to benefit the entire class by asking any questions about COBOL or Unix or programming that are confusing to you. Time to head home for supper and 6:30 p.m. Seinfeld rerun! Mark