Page 1 of 1

Reading variable from a data set - not a PDS member

PostPosted: Thu Jun 20, 2013 3:53 pm
by GRAMBO
Hi,

I am having problems when trying to retrieve a variable for use in my JCL from a data set.

When the data is in a PDS member, I can use the following to read my data in :-
%%LIBSYM memberPDS %%MEMSYM member

However, I need to be able to read the data from a data set not a PDS member, is this possible??

The file would be 1 row only, and take the format :-
FB 80
=COLS>    ----+----1----+----2----+----3----+
******    ***************************** Top o
000001    %%FNAME=REPORT20/06/2013-01.DATA   


Thanks,

Re: Reading variable from a data set - not a PDS member

PostPosted: Thu Jun 20, 2013 3:57 pm
by prino
And what does this actually have to do with JCL?

Re: Reading variable from a data set - not a PDS member

PostPosted: Thu Jun 20, 2013 4:37 pm
by Robert Sample
%%LIBSYM and %%MEMSYM are functions specific to a product installed at your site. Your best options are:
1) talk to your site support group for assistance
2) figure out which product uses these functions, find the product documentation at your site (it will be there if your site is licensed for the product), and read the documentation to see if what you want to do can be done, and if so how.

Re: Reading variable from a data set - not a PDS member

PostPosted: Thu Jun 20, 2013 5:16 pm
by c62ap90
GRAMBO wrote:Hi,

I am having problems when trying to retrieve a variable for use in my JCL from a data set.

When the data is in a PDS member, I can use the following to read my data in :-
%%LIBSYM memberPDS %%MEMSYM member

However, I need to be able to read the data from a data set not a PDS member, is this possible??

Have you tried testing with a NON-PDS file (ie. 1-record sequential flat file) and see if it works?

Re: Reading variable from a data set - not a PDS member

PostPosted: Fri Jun 21, 2013 4:41 am
by steve-myers
Almost all programs that can read a sequential data set specified by a DD statement like -

//INPUT DD DSNAME=sequential-dataset,...

can read a member of a PDS specified by a DD statement like -

//INPUT DD DSNAME=partitioned-dataset(member),...

Obviously, the dd name varies by the requirement of the program, it is probably not going to be INPUT.

Re: Reading variable from a data set - not a PDS member

PostPosted: Fri Jun 21, 2013 2:01 pm
by Stefan
You should ask your Control-M admins for an appropriate solution or request access to the product documentation.
GRAMBO wrote:However, I need to be able to read the data from a data set not a PDS member, is this possible??

Please explain why it is so important to provide the data in a sequential file.
If it is really indispensable then copy your sequential file into a temporary pds(member) in a previous job step.