From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,278ea0459f8366a1,start X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,278ea0459f8366a1,start X-Google-Attributes: gid1164f8,public From: wws@cc.bellcore.com (Wayne Scott) Subject: creating simple text files from MMS Date: 1995/03/29 Message-ID: <3lbk7b$gem@athos.cc.bellcore.com>#1/1 X-Deja-AN: 100528231 distribution: world sender: wws@microjet (Wayne Scott) followup-to: comp.os.vms organization: Bellcore/SCP (2561) keywords: getting weird format... reply-to: wws@cc.bellcore.com newsgroups: comp.sys.dec,comp.os.vms Hi Folks: I'm trying to create a simple, one-line text file from an MMS (make) file target, so I can append something else to it. Trouble is, the format is really weird and I get an error from the append. The write to the file doesn't give what I expect - it seems to add a strange character and doesn't break to a new line. Here are the details: [ FYI-> VR2VRX is a 3rd-party tool that creates a text file from a binary.] [ That's NOT the source of my problem.] UNIT = scsc_menu_disp VR = $(UNIT).vr VRX = $(UNIT).vrx TMP_VRX = $(VRX)_tmp .. vrx : @ $write sys$output "Building VRX $(VRX) from VR $(VR)..." @ $open/write outfile $(TMP_VRX) @ $write outfile " @(#) FILENAME gen=GEN date=DATE" @ $write outfile "" @ $close outfile @ $write sys$output "Put WHAT STRING in $(TMP_VRX)..." @ $vr2vrx $(VR) @ $write sys$output "Ran vr2vrx...appending $(VRX) to $(TMP_VRX)" @ $append $(VRX) $(TMP_VRX) The error I get is: CP0204: build vrx Building VRX scsc_menu_disp.vrx from VR scsc_menu_disp.vr... Put WHAT STRING in scsc_menu_disp.vrx_tmp... Ran vr2vrx...appending scsc_menu_disp.vrx to scsc_menu_disp.vrx_tmp %APPEND-W-INCOMPAT, DISK$SCPDISK34:[WWS.7-1.SCSC_MENU_DISP]SCSC_MENU_DISP.VRX;2 (input) and DISK$SCPDISK34:[WWS.7-1.SCSC_MENU_DISP]SCSC_MENU_DISP.VRX_TMP;1 (output) have incompatible attributes %MMS-F-ABORT, For target VRX, CLI returned abort status: %X107111E0. CP0204: analy/rms_file/fdl shows the following: scsc_menu_disp.vrx_tmp: RECORD BLOCK_SPAN yes CARRIAGE_CONTROL print CONTROL_FIELD_SIZE 2 FORMAT vfc SIZE 0 CP0204: scsc_menu_disp.vrx: RECORD BLOCK_SPAN yes CARRIAGE_CONTROL carriage_return FORMAT stream_lf SIZE 0 CP0204: The append works anyway, but the lines wrap around instead of breaking where they do in the 2nd file. When I try to make the attributes identical, a '%' is added before the text in the first file: @ $set file/attribute=(RAT:CR,RFM:STMLF) $(TMP_VRX) @ $set file/protection=(SYSTEM:RWD,OWNER:RWD,GROUP:R,W:R) $(TMP_VRX) CP0204: type SCSC_MENU_DISP.VRX_TMP;2 % @(#) FILENAME gen=GEN date=DATE CP0204: This is really getting me P*, P*, Perturbed! I expected it to be a simple, 30-minute job, but it's chewing up hours. I have no idea where to start investigating the root cause and the solution. I've looked at another COM tool we have that creates text files similarly with no problems. All helpful hints would be appreciated. Thanks, Wayne -- ---------------------------------------------- wws@cc.bellcore.com I'm just a soul whose intentions are good, Oh Lord, please don't let me be misunderstood.