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: 1018
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: 8797
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: 1018
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: 1018
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: 6250
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: 6250
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: 8797
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: 1018
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: 6250
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: 8797
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: 6250
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: 19244
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 Merge files with a key and insert a b... DFSORT/ICETOOL 6
No new posts EMPTY file check scenario JCL & VSAM 6
No new posts COBOL program logic for comparisipn o... COBOL Programming 2
No new posts COBOL - create and write to output fi... COBOL Programming 0
No new posts Best way to create an automated line ... TSO/ISPF 3
Search our Forums:

Back to Top