Reading variable from a data set - not a PDS member



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Reading variable from a data set - not a PDS member

Postby GRAMBO » Thu Jun 20, 2013 3:53 pm

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,
GRAMBO
 
Posts: 8
Joined: Fri Oct 15, 2010 10:22 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby prino » Thu Jun 20, 2013 3:57 pm

And what does this actually have to do with JCL?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 29 times

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

Postby Robert Sample » Thu Jun 20, 2013 4:37 pm

%%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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

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

Postby c62ap90 » Thu Jun 20, 2013 5:16 pm

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?
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

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

Postby steve-myers » Fri Jun 21, 2013 4:41 am

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

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

Postby Stefan » Fri Jun 21, 2013 2:01 pm

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.
There are 10 types of people in the world: Those who understand binary, and those who don't.
User avatar
Stefan
 
Posts: 27
Joined: Tue Aug 21, 2012 3:02 pm
Has thanked: 0 time
Been thanked: 2 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post