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: //MYJCL JCLLIB 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 <[email protected] > wrote: > > -----Original Message----- > > From: The IBM z/VM Operating System > > [mailto:[email protected]] On Behalf Of Rob van der Heij > > Sent: Tuesday, December 21, 2010 3:22 AM > > To: [email protected] > > 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 * > [email protected] * 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 > > >
