View previous topic :: View next topic
|
Author |
Message |
Avinash Kumar Warnings : 1 New User
Joined: 20 Feb 2007 Posts: 9 Location: Noida
|
|
|
|
Hi Friends.
I have a file consisting a list of some 20 datasets. I am using this file in a COBOL program. Then please help me to differentiate the PS & PDS datasets from the list in my program.
Thanks. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Avinash Kumar wrote: |
help me to differentiate the PS & PDS datasets from the list in my program. |
Wy would/do you need to know the difference? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You will have to get the DSNAME using your COBOL or a REXX function.
O. |
|
Back to top |
|
|
Avinash Kumar Warnings : 1 New User
Joined: 20 Feb 2007 Posts: 9 Location: Noida
|
|
|
|
I already have the DSNAME in a file. I can read the file and get the DSNAME in program. Now tell me how can i identify the dataset its PS or PDS? |
|
Back to top |
|
|
rakesh.in.in
New User
Joined: 01 Mar 2007 Posts: 5 Location: Pune
|
|
|
|
In PS there is no directory block---None
But in Pds the directory block---Some value |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
In SAS you can get info using JFCB.
But not sure how to get this in COBOL? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
JFCB can be mapped in COBOL. The relevant field for your need is probably JFCDSORG.
An example of JFCB in COBOL can be found here.
The full mapping of JFCB can be found in the fine manual.
O. |
|
Back to top |
|
|
Suryanarayana.tadala
New User
Joined: 03 Nov 2005 Posts: 43 Location: St.Louis
|
|
|
|
Go thru ISPF view (3.4) and give the initial view option as Attrib , it would show/sort you with the PS/PD |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
But how is 3.4 coing to help him "in my program"? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can simulate 3.4 programmatically by using the ISPF service LMDLIST.
O. |
|
Back to top |
|
|
jasorn Warnings : 1 Active User
Joined: 12 Jul 2006 Posts: 191 Location: USA
|
|
|
|
ofer71 wrote: |
You can simulate 3.4 programmatically by using the ISPF service LMDLIST.
O. |
Got a link to an example calling LMDLIST from cobol? I searched but didn't see one. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You would be invoking ISPF services from your COBOL program, and it is the ISPF manaual(s) that contain this information.
Hit the "manuals" button at the top of the page and look at the ISPF book(s). |
|
Back to top |
|
|
|