Copyfile with PACK on MVS ?
Friends, When a RECFM V file is transferred through download/upload with a PC, we need to protect the record layout. And when it's non-text you can't stick CRLF between the lines. On VM we normally have people use the PACK option of COPYFILE, which puts enough info in the file to restore the structure. What do people do on MVS? I thought a simple IEBGENER to convert to VB or whatever would do, but that does not seem to be common practice... does TERSE maybe put stuff in to retain the record structure? And does our DETERSE recover that? Thanks, Rob
Re: Copyfile with PACK on MVS ?
On VM at least TERSE creates a F 1024 file, wouldn't it do that on MVS too? 2010/12/21 Rob van der Heij rvdh...@gmail.com Friends, When a RECFM V file is transferred through download/upload with a PC, we need to protect the record layout. And when it's non-text you can't stick CRLF between the lines. On VM we normally have people use the PACK option of COPYFILE, which puts enough info in the file to restore the structure. What do people do on MVS? I thought a simple IEBGENER to convert to VB or whatever would do, but that does not seem to be common practice... does TERSE maybe put stuff in to retain the record structure? And does our DETERSE recover that? Thanks, Rob -- Kris Buelens, IBM Belgium, VM customer support
Re: Copyfile with PACK on MVS ?
On Tue, Dec 21, 2010 at 12:20 PM, Kris Buelens kris.buel...@gmail.com wrote: On VM at least TERSE creates a F 1024 file, wouldn't it do that on MVS too? Well, you can also talk IND$FILE into making F 1024 file, but that does not help... ;-) But since I think the service process uses tersed VMFPLC images, I got more optimistic that the DETERSE should be able to rebuild the record layout. I thought we only got DETERSE with z/VM, but that may have changed. | Rob
Re: Copyfile with PACK on MVS ?
Maybe NETDATA? -- R; On Tue, Dec 21, 2010 at 04:21, Rob van der Heij rvdh...@gmail.com wrote: Friends, When a RECFM V file is transferred through download/upload with a PC, we need to protect the record layout. And when it's non-text you can't stick CRLF between the lines. On VM we normally have people use the PACK option of COPYFILE, which puts enough info in the file to restore the structure. What do people do on MVS? I thought a simple IEBGENER to convert to VB or whatever would do, but that does not seem to be common practice... does TERSE maybe put stuff in to retain the record structure? And does our DETERSE recover that? Thanks, Rob
Re: Copyfile with PACK on MVS ?
-Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Rob van der Heij Sent: Tuesday, December 21, 2010 3:22 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Copyfile with PACK on MVS ? Friends, When a RECFM V file is transferred through download/upload with a PC, we need to protect the record layout. And when it's non-text you can't stick CRLF between the lines. On VM we normally have people use the PACK option of COPYFILE, which puts enough info in the file to restore the structure. What do people do on MVS? I thought a simple IEBGENER to convert to VB or whatever would do, but that does not seem to be common practice... does TERSE maybe put stuff in to retain the record structure? And does our DETERSE recover that? Thanks, Rob You can use AMATERSE or TSO XMIT. AMATERSE only works for sequential datasets. XMIT works for both PDS and sequential. I use XMIT. There is something called XMITMANAGER for Winblows which can then manipulate that file if you need to on a Windows machine. I don't use it. In some cases, I just use z/OS UNIX files and pax. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM
Re: Copyfile with PACK on MVS ?
A file TERSEd on MVS can be untersed on z/VM. Here's the JCL to do it on MVS: //TERSEEXEC PGM=TRSMAIN,PARM=PACK //SYSPRINT DD SYSOUT=* //INFILE DD DISP=SHR,DSN=YOUR.INPUT.DATASET //OUTFILE DD DISP=(NEW,CATLG),UNIT=SYSDA, //SPACE=(CYL,(10,5),RLSE), //DSN=YOUR.TERSED.DATASET //* The output file will be in F 1024 format, so a binary transfer to a PC and then back to VM will to be DETERSEd will yield the original file. DJ On 12/21/2010 06:29 AM, Rob van der Heij wrote: On Tue, Dec 21, 2010 at 12:20 PM, Kris Buelens kris.buel...@gmail.com wrote: On VM at least TERSE creates a F 1024 file, wouldn't it do that on MVS too? Well, you can also talk IND$FILE into making F 1024 file, but that does not help... ;-) But since I think the service process uses tersed VMFPLC images, I got more optimistic that the DETERSE should be able to rebuild the record layout. I thought we only got DETERSE with z/VM, but that may have changed. | Rob -- Dave Jones V/Soft Software www.vsoft-software.com Houston, TX 281.578.7544
Re: Copyfile with PACK on MVS ?
You can use GIMZIP and GIMUNZIP on MVS, z/OS. Rob van der Heij rvdh...@gmail.com Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 12/21/2010 07:29 AM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc Subject Re: Copyfile with PACK on MVS ? On Tue, Dec 21, 2010 at 12:20 PM, Kris Buelens kris.buel...@gmail.com wrote: On VM at least TERSE creates a F 1024 file, wouldn't it do that on MVS too? Well, you can also talk IND$FILE into making F 1024 file, but that does not help... ;-) But since I think the service process uses tersed VMFPLC images, I got more optimistic that the DETERSE should be able to rebuild the record layout. I thought we only got DETERSE with z/VM, but that may have changed. | Rob
Re: Copyfile with PACK on MVS ?
TERSE works for both sequential and PDS, but with PDS you have to specify directory blocks on the output to unterse it. In my own JCL I do this: //MYJCLJCLLIB ORDER=BOLAN.MY.PROCLIB // SET SPACE='(CYL,(200,20,250),RLSE)' //UN1 EXEC UNTRSPDS,INDS=TRSDSN. and in my proclib I have this member: //UNTRSPDS PROC INDS=NULLFILE,DATE= //DELOUT EXEC PGM=IEFBR14 //DD1 DD DISP=(MOD,DELETE),SPACE=(TRK,(0)),UNIT=SYSDA, // DSN=SERVE2.INDS.DATE. //UNTERSE EXEC PGM=TRSMAIN,PARM=UNPACK //SYSPRINT DD SYSOUT=* //INFILE DD DISP=SHR,DSN=INDS..TRS //OUTFILE DD DSN=*.DELOUT.DD1, // UNIT=SYSDA, // DISP=(NEW,CATLG,DELETE), // SPACE=SPACE. //DELTRSIN EXEC PGM=IEFBR14,COND=(0,LT,UNTERSE) //DD1 DD DISP=(OLD,DELETE),UNIT=SYSDA, // DSN=*.UNTERSE.INFILE, // SPACE=(TRK,(0)) // PEND --Roger On Tue, Dec 21, 2010 at 6:00 AM, McKown, John john.mck...@healthmarkets.com wrote: -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Rob van der Heij Sent: Tuesday, December 21, 2010 3:22 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Copyfile with PACK on MVS ? Friends, When a RECFM V file is transferred through download/upload with a PC, we need to protect the record layout. And when it's non-text you can't stick CRLF between the lines. On VM we normally have people use the PACK option of COPYFILE, which puts enough info in the file to restore the structure. What do people do on MVS? I thought a simple IEBGENER to convert to VB or whatever would do, but that does not seem to be common practice... does TERSE maybe put stuff in to retain the record structure? And does our DETERSE recover that? Thanks, Rob You can use AMATERSE or TSO XMIT. AMATERSE only works for sequential datasets. XMIT works for both PDS and sequential. I use XMIT. There is something called XMITMANAGER for Winblows which can then manipulate that file if you need to on a Windows machine. I don't use it. In some cases, I just use z/OS UNIX files and pax. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM
Re: Copyfile with PACK on MVS ?
If you use XMIT on MVS it compresses into a RECFM FB 80 file and then you use Bin FTP to transfer the file around. The handy thing with this is that when you transfer to the other MVS system you then use RECEIVE and give it and output dataset and it will create the dataset based on the original dataset attributes (so you don't need to pre-define). I've usually found TERSE needs you to know the output dataset attributes. Xmitmanager on windows works well, but I don't think it is maintained anymore. I thought VM used XMIT when you sent files via RSCS to and MVS machine, but it has been a while since I have used that. Let me know if you need JCL examples for XMIT and RECEIVE. They are TSO commands, but can be run as a batch TSO. Regards, Tony - Original Message From: Rob van der Heij rvdh...@gmail.com To: IBMVM@LISTSERV.UARK.EDU Sent: Tue, 21 December, 2010 7:51:43 PM Subject: Copyfile with PACK on MVS ? Friends, When a RECFM V file is transferred through download/upload with a PC, we need to protect the record layout. And when it's non-text you can't stick CRLF between the lines. On VM we normally have people use the PACK option of COPYFILE, which puts enough info in the file to restore the structure. What do people do on MVS? I thought a simple IEBGENER to convert to VB or whatever would do, but that does not seem to be common practice... does TERSE maybe put stuff in to retain the record structure? And does our DETERSE recover that? Thanks, Rob
Re: Copyfile with PACK on MVS ?
Thanks for all the on-line and off-line enhancements of my rusty MVS skills. I should have some options now. Two platforms separated by a common code page ;-)