Can we find specific member without knowing the name of PDS
or can we search a member to which PDS it belongs to? if so how?
Answers were Sorted based on User's Feedback
Answer / pavan
We can find the dataset which is having the perticular member.
But you have list out all the datasets using 3.4.
EX: Suppose if your ID is starting with UCS5..then give
UCS5.** in 3.4......You will get the list of the datasets.
Then use command like below. Here member is "MAIN"
Command ==> M MAIN
"M" is the command to find the member in the datasets.
Is This Answer Correct ? | 9 Yes | 3 No |
Answer / guest
go to 3.4 option.
in the command line type the following.
command ==> MEMBER 'Member_name' (hit enter)
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / rajesh
hi,
As the pavan said is correct,
more information we can also give mem 'dname' in 3.4 panel.
dname = ps name you want to find.
Thanks & Rgd's
rajesh
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / muttaiah
@Jagan:
Work bench might be a tool in your project. Never divert
people in this way. because the same tool may or may not be
available in some projects..
Best way is to list all the datasets in 3.4 option.
Give M <member name> or Member <membername>
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shekar
If the member is in one of the allocated datasets, then the
following REXX would help you:
/* REXX COMMAND TO search the member in the allocated
dataset */
arg
mem
mem = strip
(mem)
say ' '
if (mem = '' | mem = ' ')
then
do
say 'please give the member to be searched as
argument'
exit
end
/*trace
I*/
call on
error
ADDRESS ISPEXEC "CONTROL ERRORS
RETURN"
call
outtrap "LINE."
ADDRESS
TSO "LISTALC"
call
outtrap "OFF"
say mem
N = line.0
a = 0
ADDRESS TSOEXEC
do I = 1 to N
dataset = line.i
fullds = "'"dataset"("MEM")'"
foundmem = SYSDSN(fullds)
if foundmem = 'OK' then
do
a = a + 1
say '"'MEM'" is found in "'dataset'"'
end
end
if a = 0
then
say '"'MEM'" is not found in list of allocated
datasets'
exit
error:
zerrsm = "Return code"
rc
zerrlm = "Return code from command is"
rc
zerralrm
= "YES"
zerrhm
= "*"
address ispexec "SETMSG MSG
(ISRZ002)"
return
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / jagan
For searching a particular member to which PDS it belongs we
can check it in the workbench option 23...
In TSO Prompt enter > wb;;23 and enter the member name which
helps you find the PDS to which the member belongs too...
Is This Answer Correct ? | 0 Yes | 3 No |
IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the second step using the JCL, How to do it?? Please give the answer ASAP:)
i want apply mainframe devolper with 3+ but i dont have that much of knowledge what isthe solution to get that much of knoweldge?
Does the terms, JOBLOG, SPOOL and SYSOUT indicate the same thing, i.e., where JCL and JES messages and statements are written ?
Name the system library from which modules are retrieved at execution
how to concatenate datasets
Describe the various parameters utilized in the creation of a gdg?
what is use of disp parameter in dd statement?
I have a jcl which is using 2 data sets i want to override those data sets. how can i override the files within the JCL. Give me the syntax. Make sure that it is not calling any Proc.
Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:
Explain the hierarchy levels in jcl?
What is the purpose of include statement in a JCL?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.