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

How to create a empty PS files


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Sep 01, 2008 6:42 pm
Reply with quote

Hi,

How to create a EMPTY PS files in a PDS(already created) using JCL.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Mon Sep 01, 2008 6:45 pm
Reply with quote

Can you explain exactly what you want to do ?

You can not have a PS inside of a PDS.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Sep 01, 2008 6:53 pm
Reply with quote

Hi,

I have created a PDS folder called "HXSULL.TEST.LOAD.CARDS".
i want to create sequential files in this folder using JCL.

HXSULL.TEST.LOAD.CARDS will be having files like AAA,BBB,CCC,DDD like that.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Sep 01, 2008 6:59 pm
Reply with quote

What i meant to say is, by running the JCL program i must be able to create multiple sequential files like (AA,BB,CC) in that PDS folder.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Mon Sep 01, 2008 7:04 pm
Reply with quote

This thread seems to be in relation in with the below one..

ibmmainframes.com/viewtopic.php?p=151362#151362

Please check if the replies satisfy your need.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Mon Sep 01, 2008 7:12 pm
Reply with quote

Hello,
sushanth bobby wrote:
I have created a PDS folder called "HXSULL.TEST.LOAD.CARDS".
i want to create sequential files in this folder using JCL.
Well, for this try -

Code:
//STEP003  EXEC PGM=IEBGENER                               
//*                                                       
//SYSPRINT DD SYSOUT=*                                     
//SYSUT1   DD *                                           
/*                                                         
//SYSUT2   DD  DSN=HXSULL.TEST.LOAD.CARDS(FIRST),DISP=SHR,
//         DCB=(RECFM=FB,LRECL=80)                         
//SYSIN    DD DUMMY                                       
//SYSOUT   DD SYSOUT=*                                     

Repeat the step for other members.

Again, in this
Quote:
i want to create sequential files in this folder using JCL.

why would you use such terms. "folder" is not in Mainfrmes's glossary, it's a WINDOWS term rather. "sequential files" do not "stays" in a PDS, they are "independent" - what is there inside the PDS is members & nothing else, just get them right.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Mon Sep 01, 2008 7:15 pm
Reply with quote

I think the you really mean MEMBERS in the PDS not PS files.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Sep 01, 2008 7:43 pm
Reply with quote

Thank You Very Much Anuj,
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Tue Sep 02, 2008 11:00 am
Reply with quote

Hi,

You're welcome, hopefully I had been helpful.. icon_smile.gif.

And in this
Quote:
Thank You Very Much Anuj,

liked the "Title Case" structure of you post.. icon_razz.gif.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Sep 09, 2008 4:30 pm
Reply with quote

Quote:
I think the you really mean MEMBERS in the PDS not PS files.


I remeber reading this in one of the manuals.

Quote:
Members in a PDS are actually sequential files


Hope I am not wrong.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue Sep 09, 2008 4:36 pm
Reply with quote

Aaru,

Which do you find easier to understand, members of a PDS or PS files of a PDS ?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Sep 09, 2008 4:47 pm
Reply with quote

Hi,

Quote:
Which do you find easier to understand, members of a PDS or PS files of a PDS ?


Without doubt, I would prefer mainframers to use "members of a PDS" instead of "PS files of a PDS ".
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Tue Sep 09, 2008 7:53 pm
Reply with quote

Hi,

The way 'they' will be processed in any program (COBOL etc.) or by some utility is always "sequential"..so the manuals says..
Quote:
Members in a PDS are actually sequential files
(probably).
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Sep 09, 2008 7:59 pm
Reply with quote

Hello,

Members in a pds are not "actually sequential files". They are merely accessed sequentially by your program.

This is similar to reading a vsam file sequentially. The ability to read sequentially does not make the vsam file a sequential file - it only means the file supports sequential access . . .
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 3 files concatenated to 1 DFSORT/ICETOOL 2
No new posts JCL sort to compare dates in two file... DFSORT/ICETOOL 2
No new posts How can I add/create a new INIT(initi... TSO/ISPF 2
No new posts Reading Empty Dataset DFSORT/ICETOOL 5
No new posts Email attachment from mainframe is empty PC Guides & IT News 9
Search our Forums:

Back to Top