VMS quesion DO BLOB
Hamilton, Allison
Allison.Hamilton@Cognos.COM
Fri, 19 Mar 2004 09:24:22 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C40DBD.456117AC
Content-Type: text/plain;
charset="iso-8859-1"
Cool - one of the new Posix additions. Hadn't encountered it yet. Looks
like it has the capability to do what Peter suggesteed. If you are running
a version that has PIPE (6.2 does not, 7.2 does, not sure where in 7.x it
came in, they add a bit more of POSIX stuff every release these days) it
looks like you should be able to do
$PIPE QUICK auto=XXX term=VT100 < CR_FILE
Allison Hamilton
-----Original Message-----
From: Johnson, Harold A EDUC:EX [mailto:Harold.A.Johnson@gems1.gov.bc.ca]
Sent: Thursday, March 18, 2004 5:19 PM
To: 'Hamilton, Allison'; 'Peter Bateman'; powerh-l@lists.sowder.com
Subject: RE: VMS quesion DO BLOB
What about the VMS command "PIPE"?
-----Original Message-----
From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com]On Behalf Of Hamilton, Allison
Sent: 2004 March 18 1:03 PM
To: 'Peter Bateman'; powerh-l@lists.sowder.com
Subject: RE: VMS quesion DO BLOB
You can't do that kind of piping input on OpenVMS (no <)
-----Original Message-----
From: powerh-l-admin@lists.sowder.com
[ mailto:powerh-l-admin@lists.sowder.com
<mailto:powerh-l-admin@lists.sowder.com> ]On Behalf Of Peter Bateman
Sent: Thursday, March 18, 2004 3:26 PM
To: powerh-l@lists.sowder.com
Subject: RE: VMS quesion DO BLOB
Hi Harold:
If you want to store a PDF file I would think you would have
to use an editor that can handle binary data perhaps EDIT/TPU.
$def PH_BLOBEDIT EDIT/TPU
I have converted a CR delimited text file (CR_FILE)
into a fixed length file by inputting the CR_FILE
into QUICK's standard input. The CR delimited data filled a
multiline field in the fixed length record file. The screen used the
AUTOUPDATE feature.
It went something like:-
SCREEN XXX AUTOUPDATE
FILE XFIXED
FIELD FMULTI FOR 9,60
PROCEDURE INITIALIZE
PUSH ENTRY
BUILD
$QUICK auto=XXX term=VT100 < CR_FILE
I have not tried this is VMS but it seemed to work on XP.
Regards,
Peter Bateman
>From: "Johnson, Harold A EDUC:EX" <Harold.A.Johnson@gems1.gov.bc.ca>
>To: powerh-l@lists.sowder.com
>Subject: VMS quesion
>Date: Thu, 18 Mar 2004 11:34:12 -0800
>
>Hi All. Using the "do blob" command in PH works great, but does anyone
>know
>if I can convert the following VMS file structure:
>
>RMS FILE ATTRIBUTES
>
> File Organization: sequential
> Record Format: stream-CR
> Record Attributes: carriage-return
> Maximum Record Size: 0
> Longest Record: 32767
> Blocks Allocated: 24, Default Extend Size: 0
> End-of-File VBN: 23, Offset: %X'00BE'
> File Monitoring: disabled
> Global Buffer Count: 0
>
>into
>
>RMS FILE ATTRIBUTES
>
> File Organization: sequential
> Record Format: fixed
> Record Attributes:
> Maximum Record Size: 512
> Longest Record: 512
> Blocks Allocated: 417, Default Extend Size: 0
> End-of-File VBN: 416, Offset: %X'0000'
> File Monitoring: disabled
> Global Buffer Count: 0
>
>
>I've tried several things (convert commands, set file etc.) but nothing
>works so far. The original file is actually a PDF.
>
>???
>
>thnx
>
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l@lists.sowder.com
>Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
>Unsubscribe: "unsubscribe <password>" in message body to
>powerh-l-request@lists.sowder.com
> http://lists.sowder.com/mailman/listinfo/powerh-l
<http://lists.sowder.com/mailman/listinfo/powerh-l>
>This list is closed, thus to post to the list you must be a subscriber.
_________________________________________________________________
Add photos to your messages with MSN Premium. Get 2 months FREE*
http://join.msn.com/?pgmarket=en-ca
<http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=ht
tp://hotmail.com/enca&HL=Market_MSNIS_Taglines>
&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNI
S_Taglines
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
<http://lists.sowder.com/mailman/listinfo/powerh-l>
This list is closed, thus to post to the list you must be a subscriber.
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. Thank you.
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. Thank you.
------_=_NextPart_001_01C40DBD.456117AC
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: VMS quesion DO BLOB</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=385442014-19032004>Cool -
one of the new Posix additions. Hadn't encountered it yet. Looks
like it has the capability to do what Peter suggesteed. If you are running
a version that has PIPE (6.2 does not, 7.2 does, not sure where in 7.x it came
in, they add a bit more of POSIX stuff every release these days) it looks like
you should be able to do </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=385442014-19032004>$PIPE
<FONT color=#000000><FONT face="Times New Roman">QUICK auto=XXX term=VT100 <
CR_FILE<FONT size=3> </FONT></FONT></FONT><BR></DIV></SPAN></FONT>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=385442014-19032004>Allison Hamilton</DIV></SPAN></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Johnson, Harold A EDUC:EX
[mailto:Harold.A.Johnson@gems1.gov.bc.ca]<BR><B>Sent:</B> Thursday, March 18,
2004 5:19 PM<BR><B>To:</B> 'Hamilton, Allison'; 'Peter Bateman';
powerh-l@lists.sowder.com<BR><B>Subject:</B> RE: VMS quesion DO
BLOB<BR><BR></FONT></DIV>
<DIV><SPAN class=159401822-18032004><FONT face=Arial color=#0000ff size=2>What
about the VMS command "PIPE"?</FONT></SPAN></DIV>
<DIV><SPAN class=159401822-18032004></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com]<B>On Behalf Of </B>Hamilton,
Allison<BR><B>Sent:</B> 2004 March 18 1:03 PM<BR><B>To:</B> 'Peter Bateman';
powerh-l@lists.sowder.com<BR><B>Subject:</B> RE: VMS quesion DO
BLOB<BR><BR></FONT></DIV>
<P><FONT size=2>You can't do that kind of piping input on OpenVMS (no
<)</FONT> </P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From:
powerh-l-admin@lists.sowder.com</FONT> <BR><FONT size=2>[<A
href="mailto:powerh-l-admin@lists.sowder.com">mailto:powerh-l-admin@lists.sowder.com</A>]On
Behalf Of Peter Bateman</FONT> <BR><FONT size=2>Sent: Thursday, March 18,
2004 3:26 PM</FONT> <BR><FONT size=2>To: powerh-l@lists.sowder.com</FONT>
<BR><FONT size=2>Subject: RE: VMS quesion DO BLOB</FONT> </P><BR>
<P><FONT size=2>Hi Harold:</FONT> </P>
<P><FONT size=2> If you want to store a PDF file I would think
you would have</FONT> <BR><FONT size=2> to use an editor that
can handle binary data perhaps EDIT/TPU.</FONT> <BR><FONT
size=2> $def PH_BLOBEDIT EDIT/TPU</FONT> </P>
<P><FONT size=2> I have converted a CR delimited text file
(CR_FILE)</FONT> <BR><FONT size=2> into a fixed length file by
inputting the CR_FILE</FONT> <BR><FONT size=2> into QUICK's
standard input. The CR delimited data filled a</FONT> <BR><FONT
size=2> multiline field in the fixed length record file. The
screen used the </FONT><BR><FONT size=2>AUTOUPDATE feature.</FONT>
</P>
<P><FONT size=2> It went something like:-</FONT> <BR><FONT
size=2> SCREEN XXX AUTOUPDATE</FONT> <BR><FONT
size=2> FILE XFIXED</FONT> <BR><FONT size=2>
FIELD FMULTI FOR 9,60</FONT> <BR><FONT size=2> PROCEDURE
INITIALIZE</FONT> <BR><FONT size=2> PUSH
ENTRY</FONT> <BR><FONT size=2> BUILD</FONT> </P>
<P><FONT size=2> $QUICK auto=XXX term=VT100 < CR_FILE</FONT>
<BR><FONT size=2> I have not tried this is VMS but it seemed to
work on XP.</FONT> <BR><FONT size=2>Regards,</FONT> <BR><FONT size=2>Peter
Bateman</FONT> </P>
<P><FONT size=2>>From: "Johnson, Harold A EDUC:EX"
<Harold.A.Johnson@gems1.gov.bc.ca></FONT> <BR><FONT size=2>>To:
powerh-l@lists.sowder.com</FONT> <BR><FONT size=2>>Subject: VMS
quesion</FONT> <BR><FONT size=2>>Date: Thu, 18 Mar 2004 11:34:12
-0800</FONT> <BR><FONT size=2>></FONT> <BR><FONT size=2>>Hi All.
Using the "do blob" command in PH works great, but does anyone
</FONT><BR><FONT size=2>>know</FONT> <BR><FONT size=2>>if I can
convert the following VMS file structure:</FONT> <BR><FONT
size=2>></FONT> <BR><FONT size=2>>RMS FILE ATTRIBUTES</FONT> <BR><FONT
size=2>></FONT> <BR><FONT
size=2>> File
Organization: sequential</FONT> <BR><FONT
size=2>> Record Format:
stream-CR</FONT> <BR><FONT
size=2>> Record
Attributes: carriage-return</FONT> <BR><FONT
size=2>> Maximum Record
Size: 0</FONT> <BR><FONT
size=2>> Longest Record:
32767</FONT> <BR><FONT
size=2>> Blocks
Allocated: 24, Default Extend Size: 0</FONT> <BR><FONT
size=2>> End-of-File VBN:
23, Offset: %X'00BE'</FONT> <BR><FONT
size=2>> File Monitoring:
disabled</FONT> <BR><FONT
size=2>> Global Buffer
Count: 0</FONT> <BR><FONT size=2>></FONT> <BR><FONT
size=2>>into</FONT> <BR><FONT size=2>></FONT> <BR><FONT size=2>>RMS
FILE ATTRIBUTES</FONT> <BR><FONT size=2>></FONT> <BR><FONT
size=2>> File
Organization: sequential</FONT> <BR><FONT
size=2>> Record Format:
fixed</FONT> <BR><FONT
size=2>> Record
Attributes:</FONT> <BR><FONT
size=2>> Maximum Record
Size: 512</FONT> <BR><FONT
size=2>> Longest Record:
512</FONT> <BR><FONT
size=2>> Blocks
Allocated: 417, Default Extend Size: 0</FONT> <BR><FONT
size=2>> End-of-File VBN:
416, Offset: %X'0000'</FONT> <BR><FONT
size=2>> File Monitoring:
disabled</FONT> <BR><FONT
size=2>> Global Buffer
Count: 0</FONT> <BR><FONT size=2>></FONT> <BR><FONT size=2>></FONT>
<BR><FONT size=2>>I've tried several things (convert commands, set file
etc.) but nothing</FONT> <BR><FONT size=2>>works so far. The
original file is actually a PDF.</FONT> <BR><FONT size=2>></FONT>
<BR><FONT size=2>>???</FONT> <BR><FONT size=2>></FONT> <BR><FONT
size=2>>thnx</FONT> <BR><FONT size=2>></FONT> <BR><FONT size=2>>= =
= = = = = = = = = = = = = = = = = = = = = = = = = =</FONT> <BR><FONT
size=2>>Mailing list: powerh-l@lists.sowder.com</FONT> <BR><FONT
size=2>>Subscribe: "subscribe" in message body to
powerh-l-request@lists.sowder.com</FONT> <BR><FONT size=2>>Unsubscribe:
"unsubscribe <password>" in message body to </FONT><BR><FONT
size=2>>powerh-l-request@lists.sowder.com</FONT> <BR><FONT size=2>><A
href="http://lists.sowder.com/mailman/listinfo/powerh-l"
target=_blank>http://lists.sowder.com/mailman/listinfo/powerh-l</A></FONT>
<BR><FONT size=2>>This list is closed, thus to post to the list you must
be a subscriber.</FONT> </P>
<P><FONT
size=2>_________________________________________________________________</FONT>
<BR><FONT size=2>Add photos to your messages with MSN Premium. Get 2 months
FREE* </FONT><BR><FONT size=2><A
href="http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines"
target=_blank>http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines</A></FONT></P>
<P><FONT size=2>= = = = = = = = = = = = = = = = = = = = = = = = = = =
=</FONT> <BR><FONT size=2>Mailing list: powerh-l@lists.sowder.com</FONT>
<BR><FONT size=2>Subscribe: "subscribe" in message body to
powerh-l-request@lists.sowder.com</FONT> <BR><FONT size=2>Unsubscribe:
"unsubscribe <password>" in message body to
powerh-l-request@lists.sowder.com</FONT> <BR><FONT size=2><A
href="http://lists.sowder.com/mailman/listinfo/powerh-l"
target=_blank>http://lists.sowder.com/mailman/listinfo/powerh-l</A></FONT>
<BR><FONT size=2>This list is closed, thus to post to the list you must be a
subscriber.</FONT> </P>
<P><FONT size=2>This message may contain privileged and/or confidential
information. If you have received this e-mail in error or are not the
intended recipient, you may not use, copy, disseminate or distribute it; do
not open any attachments, delete it immediately from your system and notify
the sender promptly by e-mail that you have done so. Thank
you.</FONT></P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
<BR>
<P><FONT SIZE=2 FACE="Arial">This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.</FONT></P>
------_=_NextPart_001_01C40DBD.456117AC--