View previous topic :: View next topic
|
Author |
Message |
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Hi,
How to create a EMPTY PS files in a PDS(already created) using JCL. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Can you explain exactly what you want to do ?
You can not have a PS inside of a PDS. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
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 |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
I think the you really mean MEMBERS in the PDS not PS files. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Thank You Very Much Anuj, |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
You're welcome, hopefully I had been helpful.. .
And in this
Quote: |
Thank You Very Much Anuj, |
liked the "Title Case" structure of you post.. . |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Aaru,
Which do you find easier to understand, members of a PDS or PS files of a PDS ? |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|