Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to create a empty PS files

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

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Mon Sep 01, 2008 6:42 pm    Post subject: How to create a empty PS files
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: 8614
Location: Back in jolly old England

PostPosted: Mon Sep 01, 2008 6:45 pm    Post subject:
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: 1013
Location: India

PostPosted: Mon Sep 01, 2008 6:53 pm    Post subject:
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: 1013
Location: India

PostPosted: Mon Sep 01, 2008 6:59 pm    Post subject:
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

Senior Member


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

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

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

http://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

Senior Member


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

PostPosted: Mon Sep 01, 2008 7:12 pm    Post subject:
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: 8614
Location: Back in jolly old England

PostPosted: Mon Sep 01, 2008 7:15 pm    Post subject:
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: 1013
Location: India

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

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

Senior Member


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

PostPosted: Tue Sep 02, 2008 11:00 am    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Tue Sep 09, 2008 4:30 pm    Post subject: Reply to: How to create a empty PS files
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: 8614
Location: Back in jolly old England

PostPosted: Tue Sep 09, 2008 4:36 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Tue Sep 09, 2008 4:47 pm    Post subject: Reply to: How to create a empty PS files
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

Senior Member


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

PostPosted: Tue Sep 09, 2008 7:53 pm    Post subject: Re: Reply to: How to create a empty PS files
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

Site Director


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

PostPosted: Tue Sep 09, 2008 7:59 pm    Post subject:
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    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
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts How to create issuer certificate? :'( vasanthz All Other Mainframe Topics 1 Sat Nov 18, 2017 5:14 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us