How does one print a PDS member in batch?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

How does one print a PDS member in batch?

Postby aldencarr123 » Wed Nov 11, 2020 4:25 am

Hello guys can you give me the right syntex to print a PDS member? Thanks
aldencarr123
 
Posts: 6
Joined: Wed Nov 11, 2020 4:14 am
Has thanked: 0 time
Been thanked: 0 time

Re: How does one print a PDS member in batch?

 

Re: How does one print a PDS member in batch?

Postby steve-myers » Wed Nov 11, 2020 5:36 am

There is no "JCL" that, by itself, will print a member. This JCL will run a program that will print a member.
//xxx      JOB ...   Varies from shop to shop
//        EXEC PGM=IEBGENER
//SYSPRINT DD  SYSOUT=*
//SYSUT1   DD  DISP=SHR,DSN=dataset(member)
//SYSUT2   DD  SYSOUT=*
//SYSIN    DD  DUMMY
There are any number if programs you can use to print a member of a PDS; the IEBGENER program used in this JCL is common to every z/OS installation. It is reliable and requires very simple JCL.
steve-myers
Global moderator
 
Posts: 2085
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 235 times

Re: How does one print a PDS member in batch?

Postby NicC » Wed Nov 11, 2020 6:16 pm

In a section of the forum headlined "JCL" using a topic title of 'JCL' is absolutely pointless. Your topic subject should be relevant and informative. I have changed it.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3018
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How does one print a PDS member in batch?

Postby sergeyken » Thu Nov 12, 2020 4:00 am

Since 1960-s the IBM utility IEBPTPCH has been designed specifically to print, and to punch either all or selected members of a PDS datasets.
It is as simple as a hammer.

https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.idau100/u1379.htm
sergeyken
 
Posts: 118
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 2 times
Been thanked: 11 times

Re: How does one print a PDS member in batch?

Postby steve-myers » Thu Nov 12, 2020 5:48 am

sergeyken is correct. I thought about recommending IEBPTPCH and providing an example. I chose IEBGENER for two reasons.
  • In order to use IEBPTPCH you must know something about the characteristics of the input data set. The topic starter did not supply these characteristics. IEBGENER copies the characteristics of the input data set to the output data set automatically; for IEBPTPCH you must specify the input characteristics of the input data set and how to apply them to the output data set in IEBPTPCH control statements in the data set specified by the DD statement with DD name SYSIN. The topic starter did not say anything about the characteristics of the input data set.
  • To print one member of a data set the member name must be specified in input control statements. This added unnecessary complexity to the simple requirement stated by the TS.
steve-myers
Global moderator
 
Posts: 2085
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 235 times

Re: How does one print a PDS member in batch?

Postby sergeyken » Thu Nov 12, 2020 9:17 pm

Noone has mentioned to the TS that JCL has no ability (and therefore no “right syntax”) to print anything from anywhere. Nothing at all!

Only standard utilities, or specially created code, or other tools (all not related to JCL) can do this.
sergeyken
 
Posts: 118
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 2 times
Been thanked: 11 times

Re: How does one print a PDS member in batch?

Postby steve-myers » Thu Nov 12, 2020 11:49 pm

sergeyken: You didn't read the first sentence in my first reply.
steve-myers
Global moderator
 
Posts: 2085
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 235 times

Re: How does one print a PDS member in batch?

Postby sergeyken » Fri Nov 13, 2020 1:24 am

steve-myers wrote:sergeyken: You didn't read the first sentence in my first reply.

I read it at the first time, but have forgotten by the end of the topic. :mrgreen:
sergeyken
 
Posts: 118
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 2 times
Been thanked: 11 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post