IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Concept of writing PDS member or file using JCl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2146
Location: At my coffee table

PostPosted: Mon Feb 25, 2008 6:26 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Feb 25, 2008 6:29 pm
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

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Tue Feb 26, 2008 3:49 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Feb 26, 2008 5:41 pm
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

Moderator Emeritus


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

PostPosted: Tue Feb 26, 2008 9:27 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top