Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IEBPTPCH PDS to PS.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rahulbank

New User


Joined: 25 Sep 2008
Posts: 66
Location: Bengaluruuuuuu

PostPosted: Thu Aug 13, 2009 10:16 pm    Post subject: IEBPTPCH PDS to PS.
Reply with quote

Code:

//IEBPTPCH EXEC PGM=IEBPTPCH
//SYSUT1    DD DSN=SMGT.HEALTHCK.REPORT,DISP=SHR
//SYSUT2    DD DSN=SMGT.TRY,DISP=OLD
//SYSPRINT DD SYSOUT=*
//SYSIN      DD *
  PRINT TYPORG=PO,MAXNAME=4,MAXFLDS=1
  MEMBER NAME = GYGY
  MEMBAR NAME = HUHU
  RECORD FIELD=(80)
/*     

Using this job I'm able to transfer some members from PDS to PS...however the format of the first member gets dispersed/changed(is different from the original format) and only the last member is in a proper format...can someone please suggest how to print the members to the PS just the way it is....
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Aug 13, 2009 10:59 pm    Post subject: Reply to: IEBPTPCH PDS to PS.
Reply with quote

Did you already try the TSO PRINTDS command?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8002
Location: Bellevue, IA

PostPosted: Thu Aug 13, 2009 11:08 pm    Post subject:
Reply with quote

1. You've got a typo -- MEMBAR NAME = is not going to work.
2. MEMBER NAME = will not work since there can be no spaces around the equal sign. This is one reason we encourage posting exact JCL and not your interpretation of the JCL -- and use BBcode to make spacing obvious.
3. Did you add the carriage control character to the SMGT.TRY file LRECL (so it is one more than the LRECL of SMGT.HEALTHCK.REPORT)?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Aug 14, 2009 11:29 am    Post subject:
Reply with quote

For 80 byte records, I always find that the PUNCH option works OK.
In fact I even tested it before posting.
Back to top
View user's profile Send private message
rahulbank

New User


Joined: 25 Sep 2008
Posts: 66
Location: Bengaluruuuuuu

PostPosted: Mon Aug 17, 2009 5:43 pm    Post subject:
Reply with quote

My i/p dsn is

Record length . . . : 121
Block size . . . . : 27951

and o/p dsn is

Record length . . . : 122
Block size . . . . : 28182

This is my JCL:

//IEBPTPCH EXEC PGM=IEBPTPCH
//SYSUT1 DD DSN=SMGT.HEALTHCK.REPORT,DISP=SHR
//SYSUT2 DD DSN=SMGT.TRY1,DISP=(OLD,CATLG,DELETE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
PRINT TYPORG=PO,MAXNAME=4,MAXFLDS=1
MEMBER NAME=HC1A01
MEMBER NAME=HC1B01
MEMBER NAME=HC1C01
MEMBER NAME=HC1D01
RECORD FIELD=(80)

STill the o/p even though the 1 character is there in LRECL of the o/p dsn more it does not work....the punch option works fine but still it is not as good as when printing all the members at the same time using print...

I am facing this problem only when I try to print or punch selective members if I want to print all o/p is good (without member name coded)....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEBPTPCH limitations Todd.Proganal JCL & VSAM 8 Fri May 31, 2013 6:35 pm
No new posts IEBPTPCH utility to copy members from... khadar78 All Other Mainframe Topics 3 Wed Aug 05, 2009 2:10 pm
No new posts Run IEBPTPCH with several PDS in SYSUT1 dick scherrer JCL & VSAM 13 Wed Mar 21, 2007 11:10 pm
No new posts sample JCL for IEBPTPCH Utility reddy307 JCL & VSAM 1 Tue Mar 06, 2007 12:35 pm
No new posts What is the fullform of IEBPTPCH pawar_atul JCL & VSAM 2 Sat Jul 22, 2006 12:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us