View previous topic :: View next topic
|
Author |
Message |
Amb
New User
Joined: 12 Mar 2010 Posts: 64 Location: India
|
|
|
|
Hi,
I am executing a REXX program from a JCL using IKJEFT01 utility.
In my REXX program I have the following logic. It searches for the existence of a member and does some processing.
The below loop runs 'n' number of times where 'n' is the number of members present in the PDS.
x = SYSDSN('A.B(member)')
if x <> "OK" then
Do
---- Some Logic
End
else
Do
---- Some Logic
End
The SYSDSN statement is not wroking. Once the first member is found and return code is "OK" after that for all the other members I am getting the
below message
"ERROR PROCESSING THE REQUIRED DATASET"
However if I run the above REXX in online mode then it works.
Pls help. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
What you have posted is about as much use as a chocolate tea pot.
It tells us absolutely nothing.
Were there no error codes issued.
Did you trace the REXX.
What have YOU actually done to resolve before posting. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Amb wrote: |
The below loop runs 'n' number of times where 'n' is the number of members present in the PDS. |
Do you have a list of "members present in the PDS" ?
If yes, why do you need to run SYSDSN ?
If no, LISTDS is more appropriate.
Are you sure the message "ERROR PROCESSING THE REQUIRED DATASET" comes from SYSDSN ?
1. Run with TRACE
2. Show us the exact code used for the SYSDSN command. |
|
Back to top |
|
|
Amb
New User
Joined: 12 Mar 2010 Posts: 64 Location: India
|
|
|
|
Thanks
I coded the DYNMBR parameter and the problem was solved. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Good! |
|
Back to top |
|
|
|