<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: file conversion using dd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947886#M115169</link>
    <description>Hi &lt;BR /&gt;&lt;BR /&gt;Struggling - &lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Thu, 10 Apr 2003 07:55:50 GMT</pubDate>
    <dc:creator>steven Burgess_2</dc:creator>
    <dc:date>2003-04-10T07:55:50Z</dc:date>
    <item>
      <title>file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947884#M115167</link>
      <description>Hi all&lt;BR /&gt;&lt;BR /&gt;I have a file that has the following block size and record length&lt;BR /&gt;&lt;BR /&gt;REMOTE_SYSTEM_TYPE=MVS&lt;BR /&gt;RECORD_LENGTH=32756&lt;BR /&gt;BLOCK_SIZE=32760&lt;BR /&gt;&lt;BR /&gt;The file has come from remote VMS and looks as though it has been blocked for space purposes. &lt;BR /&gt;&lt;BR /&gt;It comes through as awk program text as the HP doesn't know what type of file it is&lt;BR /&gt;&lt;BR /&gt;PROD.tsysuk-edouk-stmts.20030307231003: awk program text&lt;BR /&gt;&lt;BR /&gt;I am trying to convert the file to ascii using dd with the following permitations&lt;BR /&gt;&lt;BR /&gt;dd if=PROD.tsysuk-edouk-stmts.20030307231003 conv=ascii bs=32760 of=ste.new &lt;BR /&gt;&lt;BR /&gt;dd if=PROD.tsysuk-edouk-stmts.20030307231003 conv=ascii cbs=32760 of=ste.new &lt;BR /&gt;&lt;BR /&gt;dd if=PROD.tsysuk-edouk-stmts.20030307231003 conv=ascii bs=110 of=ste.new&lt;BR /&gt;&lt;BR /&gt;dd if=PROD.tsysuk-edouk-stmts.20030307231003 conv=ascii cbs=110 of=ste.new&lt;BR /&gt;&lt;BR /&gt;Plus others. The cbs=110 is giving me some readable text but not enough.&lt;BR /&gt;&lt;BR /&gt;Can anyone advise further ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance &lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 10 Apr 2003 07:01:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947884#M115167</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2003-04-10T07:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947885#M115168</link>
      <description>Steven&lt;BR /&gt;try your first attempt again, but use ibs=32760 as opposed to bs=32760&lt;BR /&gt;&lt;BR /&gt;More often than not, this is a long drawn out play with all hte variables until you get what you want out.&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Apr 2003 07:09:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947885#M115168</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2003-04-10T07:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947886#M115169</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Struggling - &lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 10 Apr 2003 07:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947886#M115169</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2003-04-10T07:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947887#M115170</link>
      <description>ok, so now try:&lt;BR /&gt;dd if=PROD.tsysuk-edouk-stmts.20030307231003 conv=ascii ibs=32760 cbs=32756 of=ste.new</description>
      <pubDate>Thu, 10 Apr 2003 08:16:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947887#M115170</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2003-04-10T08:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947888#M115171</link>
      <description>Hi Melvyn&lt;BR /&gt;&lt;BR /&gt;Some ascii char but the rest is just control characters&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 10 Apr 2003 08:30:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947888#M115171</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2003-04-10T08:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947889#M115172</link>
      <description>Ouch, this may be a painful process. Hopefully there may be others in the forum who might be able to shed more light on this for you.&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Apr 2003 08:54:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947889#M115172</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2003-04-10T08:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947890#M115173</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;A long time ago I had to play this kind of game ... But I don't known VMS. Are you sure source coding is EBCDIC ? Sometimes I also had to play with conv=swab (to swap bytes) or conv=unblock to convert from fixed-length to variable-length.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 10 Apr 2003 09:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947890#M115173</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-04-10T09:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947891#M115174</link>
      <description>MVS != VMS :)&lt;BR /&gt;&lt;BR /&gt;What is it you want to achieve? Read blocks of 32760 bytes, strip trailing spaces and write to (ASCII) file with newlines instead?&lt;BR /&gt;&lt;BR /&gt;can you make the first 100k of the file available as URL, so we can have a look? I bet it's doable with perl, whatever you want to achieve :]&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Thu, 10 Apr 2003 10:01:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947891#M115174</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-04-10T10:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947892#M115175</link>
      <description>I'm guessing here, but if the blocksize is 32760 and the record length is 32756 then you've probably got what the IBM world calls variable blocked records.&lt;BR /&gt;&lt;BR /&gt;If this is the case, then the first 2 bytes of each block will hold the binary length of the block, and then each record within the block will have a 2 byte binary record length at the beginning. In each case the third and fourth bytes should be zero (they are used for something, but it's so long since I did anything with these records that I can't remember what). Each record can be up to 32756 bytes, but could be much shorter.&lt;BR /&gt;&lt;BR /&gt;Sorry, I don't know if there is any standard utility on HP-UX which will re-block them.&lt;BR /&gt;&lt;BR /&gt;How did you get the data? Was it ftp'd from an MVS mainframe? If so there should be some options on the ftp transfer that might allow reblocking. A 'help site' in ftp might provide assistance.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Thu, 10 Apr 2003 10:18:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947892#M115175</guid>
      <dc:creator>Ian Box</dc:creator>
      <dc:date>2003-04-10T10:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947893#M115176</link>
      <description>If Ian is right, try this:&lt;BR /&gt;&lt;BR /&gt;#perl -le'while(read STDIN,$_,32760){print unpack"s/a",$_}' file.vms &amp;gt;file.txt&lt;BR /&gt;&lt;BR /&gt;variations of s/a to n/a or v/a (big- vs. little-endian numbers) could help&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Thu, 10 Apr 2003 10:50:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947893#M115176</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-04-10T10:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947894#M115177</link>
      <description>Hi everyone&lt;BR /&gt;&lt;BR /&gt;Thanks for all your input. I have had a really busy morning , will try out your suggestions this afternoon and get back to you&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 10 Apr 2003 11:47:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947894#M115177</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2003-04-10T11:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947895#M115178</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;And yes - it's from mvs , not vms (doh!) and variable blocked ebcidic&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 10 Apr 2003 13:49:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947895#M115178</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2003-04-10T13:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947896#M115179</link>
      <description>Merijn (procura)&lt;BR /&gt;&lt;BR /&gt;I get&lt;BR /&gt;&lt;BR /&gt;syntax error in file /tmp/perl-ea00561 at line 1, next 2 tokens "read STDIN"&lt;BR /&gt;Execution of /tmp/perl-ea00561 aborted due to compilation errors.&lt;BR /&gt;&lt;BR /&gt;Any advice ?&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 10 Apr 2003 13:56:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947896#M115179</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2003-04-10T13:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947897#M115180</link>
      <description>Here's the first couple of lines in the file&lt;BR /&gt;&lt;BR /&gt;Zq??????????????????????^Qb^A^W^A^G????^N??(^B^A??????????????K??????K????????K??????????K????????K??????K????????(^B??????????????K??????K????????K??????????K????????K??????K????????Z^\??????????????????????&lt;BR /&gt;!AZ'????^A????????????????^Qb@??????????????????????????^Fc^AZ2????^C??????????????????????????@{??@@@@@@@@@@@@@@@@^H??^B??^A??Z^U????^D????????????????&lt;BR /&gt;&lt;BR /&gt;I have just spoken to the sender of the file, they have advised that it is a 'print image file'&lt;BR /&gt;&lt;BR /&gt;a goose chase springs to mind&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 10 Apr 2003 14:00:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947897#M115180</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2003-04-10T14:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947898#M115181</link>
      <description>Oh dear, that was not nice of them.&lt;BR /&gt;Guess it proved an interesting thread though ;-]&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Apr 2003 14:04:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947898#M115181</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2003-04-10T14:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947899#M115182</link>
      <description>Is the file in a tape or have been transnmited by ftp? &lt;BR /&gt;&lt;BR /&gt;There was a previous online tranaslation done when transmited?&lt;BR /&gt;&lt;BR /&gt;1- It is a tape:&lt;BR /&gt;dd if=file_vms of=file_ux bs=32760&lt;BR /&gt;# no conversion is done.&lt;BR /&gt;&lt;BR /&gt;The output form this command must be &lt;BR /&gt;xxx+0 records in&lt;BR /&gt;xxx+0 records out&lt;BR /&gt;&lt;BR /&gt;2- It is ftp'd:&lt;BR /&gt;&lt;BR /&gt;strings file_ux &lt;BR /&gt;&lt;BR /&gt;if you can read any fragment, the file should be previously translated.&lt;BR /&gt;&lt;BR /&gt;And  no translation is needed.&lt;BR /&gt;&lt;BR /&gt;Attach the first KB, it you can do it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Apr 2003 14:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947899#M115182</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2003-04-10T14:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947900#M115183</link>
      <description>What you posted proves it's not the 'Ian' format, so my script wouldn't work anyway.&lt;BR /&gt;&lt;BR /&gt;What version of perl do you use? [ perl4 from /usr/contrib/bin is not good enough ;) ]&lt;BR /&gt;&lt;BR /&gt;what does 'file file.vms' tell you?&lt;BR /&gt;&lt;BR /&gt;is it packed? compressed? encoded?&lt;BR /&gt;&lt;BR /&gt;give us a hex dump of the first 64 bytes.&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Fri, 11 Apr 2003 07:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947900#M115183</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-04-11T07:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: file conversion using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947901#M115184</link>
      <description>Running a dd conv=ascii on the sample data gives:&lt;BR /&gt;&lt;BR /&gt;!M-;LyFM-^?M-^?M-^?M-^?M-^?M-^?M-^?M-^?;M-)M-2;M- ;M-/;M- ;M-&amp;amp;7M-Q;+M-`M-^H;M-!;&lt;BR /&gt;M- CPW2520.INH.I001.F0001.ACIF.RES.TEMPM-^H;M-!CPW2520.INH.I001.F0001.ACIF.OUT.T&lt;BR /&gt;EMP!;*LyM-lT1V10500M-^NM-^AM- !^WM-^CM-^SM-^YM-^[Ly;M- T1V10500;M-)M-2 943&lt;BR /&gt;5000000000;M-%M-3;M- !^VLw;M-"INTERNATIONAL #5                ;M-'M-g;M-!M-a;&lt;BR /&gt;M- 4!;M--Lx;M-#SP010000M-^N&lt;BR /&gt;&lt;BR /&gt;Which has some readable text in it, so that confirms that the source was EBCDIC, but if the data is a print data stream then it will consist of both text and binary data, so any conversion to ASCII is doomed to failure.&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Fri, 11 Apr 2003 08:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-conversion-using-dd/m-p/2947901#M115184</guid>
      <dc:creator>Ian Box</dc:creator>
      <dc:date>2003-04-11T08:49:57Z</dc:date>
    </item>
  </channel>
</rss>

