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
 

 

Concept of writing PDS member or file using JCl

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

New User


Joined: 16 Nov 2006
Posts: 43
Location: Bangalore

PostPosted: Mon Feb 25, 2008 6:19 pm    Post subject: Concept of writing PDS member or file using JCl
Reply with quote

Any concept of writing a PDS member or file without using the COBOL
Languages only using JCL. Can Anyone help regrading this?
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Feb 25, 2008 6:26 pm    Post subject:
Reply with quote

Is this an interview question?
JCL might be considered a 'language', but it does not really 'do' anything.....
What are you really looking for?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Feb 25, 2008 6:29 pm    Post subject: Reply to: Concept of writing PDS member or file using JCl
Reply with quote

I know, I am boring, but...
JCL will by itself do nothing icon_confused.gif

JCL ( in its basics ) is a language with a weird syntax to ...
execute programs, making available to them the datasets needed for correct operation

Just looking at the manual the logic should be clear...

there are utilities to do what You ask for, but no JCL
some utilities You might be interested in

operating system provided... IEBGENER, IDCAMS
add on products ... DFSORT/SYNCSORT, FILEAID, IBM File Manager, add more as You wish
Back to top
View user's profile Send private message
ajayvamsi
Currently Banned

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Tue Feb 26, 2008 3:49 pm    Post subject: we can do this using IEBPTPCH Utility
Reply with quote

//STEP020 EXEC PGM=IEBPTPCH,REGION=512K
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=BAUVPCA.PENGUIN.AJAY.COBOL,DISP=SHR
//SYSUT2 DD DSN=BAUVPCA.SAMPLE.PS,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(10,10),RLSE),UNIT=(SYSDA,3),
// DCB=(RECFM=FBA,LRECL=80,BLKSIZE=0)
//SYSIN DD *
PUNCH TYPORG=PO,DBCS=NO
LABELS DATA=NO
/*
Back to top
View user's profile Send private message
venosol
Warnings : 1

New User


Joined: 16 Nov 2006
Posts: 43
Location: Bangalore

PostPosted: Tue Feb 26, 2008 5:38 pm    Post subject: Reply to: Concept of writing PDS member or file using JCl
Reply with quote

Thnks .....for some sugesstions anf information. i am unable get...please
Try to find the Writng the PDS member or File by using JCL
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: Tue Feb 26, 2008 5:41 pm    Post subject:
Reply with quote

The example given above will work perfectly well with a PDS as well as a PS file, all that you need to do is to amend the JCL according to your requirement.

Although, I am not sure that I would have used IEBPTPCH.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Feb 26, 2008 9:27 pm    Post subject:
Reply with quote

Hello,

Quote:
Thnks .....for some sugesstions anf information. i am unable get...please
Try to find the Writng the PDS member or File by using JCL
Do you have an answer that works for you?

The solution posted may not be what you are looking for, but it does answer the request.

If you post more detail or include some kind of example about what you need (or describe why the posted solution will not work for you). Someone should be able to help.
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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