Copy all the members of a PDS into a single PS file

JES2/3, JCL, utilities.
Vibha
Registered Member
Posts: 52
Joined: Tue Jul 16, 2013 7:35 pm

Copy all the members of a PDS into a single PS file

Post by Vibha »

I want to copy all the members of a PDS into a single PS file. I am using IEBCOPY but it is giving the PS file output in VS RECFM. How to sloeve this?
User avatar
BearGFR
New Member
Posts: 8
Joined: Wed Jun 24, 2026 4:58 pm
Contact:

Re: Copy all the members of a PDS into a single PS file

Post by BearGFR »

Check out the IEBPTPCH utility

Example

Code: Select all

000001 //EPBPTBCH JOB 'Merging PDS members to PS',CLASS=A,
000002 // MSGLEVEL=(1,1),MSGCLASS=X
000003 //*
000004 //SQLTOSEQ EXEC PGM=IEBPTPCH
000005 //SYSPRINT DD SYSOUT=*
000006 //SYSUT1 DD DISP=SHR,DSN=EP10.JCB.SQL
000007 //SYSUT2 DD DISP=OLD,DSN=EP10.JCB.SQL.SEQUENTL <-- lrecl=81
000008 //SYSIN DD *
000009 PUNCH TYPORG=PO,DBCS=YES
000010 /*
BearGFR
Image
Post Reply Previous topicNext topic

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”