Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Access ELIPS library using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
krk_kumar1

New User


Joined: 14 Mar 2006
Posts: 39

PostPosted: Tue Mar 14, 2006 7:53 pm    Post subject: Access ELIPS library using REXX
Reply with quote

Hi,

Can anyone tell me how to access an ELIPS library and read a member in that library using REXX?
Back to top
View user's profile Send private message

martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Mar 14, 2006 7:58 pm    Post subject:
Reply with quote

hy krishna,
copy first this member to a temp dataset using LAMBASTE

address tso
"LAMBASTE DSNAME('"elipsfile(mbr)"')",
"DDNAME(SYSUT1)",
"PROGRAM(IEBGENER)"

you have to allocate all necessary datasets with

"ALLOCATE DD(x) DATASET(dsn) new catalog.....

martin9
Back to top
View user's profile Send private message
krk_kumar1

New User


Joined: 14 Mar 2006
Posts: 39

PostPosted: Tue Mar 14, 2006 8:11 pm    Post subject:
Reply with quote

Thanks martin for u'r quick responce but i've never used LAMBASTE and i was not able to find much on the net. can u post any document on how to use LAMBASTE.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Mar 14, 2006 8:31 pm    Post subject:
Reply with quote

hy krishna,

elips is the ca-librarian.
refer to ca homepage for documentation...
ca: computer associates

LAMBASTE DATASET(dataset-name) FILE(dd-name)
[VOLUME(vol-ser)] [UNIT[unit-name]]
PROGRAM(program-name) <PARMS(program-parms)>
<CLOSEFREE> <LAM<lam-parms>>

Required Operands:

DATASET(dataset-name) or DSNAME(dataset-name)

Specifies the DATASET name to allocate. If the dataset-name is fully
qualified, the name must be enclosed in quotes. If the dataset-name is
not in quotes, the dataset-name is qualified with the current TSO
profile prefix.

FILE(dd-name) or DDNAME(dd-name)

Specifies the DDNAME to which the file is allocated.

PROGRAM(program-name)

Is a required parameter that specifies the name of the program to be
executed immediately after successful allocation.

Optional Operands:

VOLUME(vol-ser)

Specifies the volume that contains the dataset. If the dataset is
not cataloged, the VOLUME(vol-ser) parameter is required.

UNIT(unit-name)

Specifies the unit name of the volume. If a unit name is not specified, a
default specification of SYSALLDA is used.

PARMS(program-parms)

Specifies free-form parameters to be passed to the program specified
by program-name. The free-form parameters must follow standard OS
parameter conventions.

CLOSEFREE

Is the equivalent of coding "FREE=CLOSE" in JCL.

If the program specified by program-name opens and closes the LAM file
more than once, do not use CLOSEFREE, or an abend will result. Leaving
out the CLOSEFREE parameter and using the default will always work.

LAM(lam-parms)

Specifies sub-keywords and sub-parameters that activate LAM features.
LAM features supported in the OS JCL have corresponding
sub-keywords that can be entered in their place, as lam-parms, as
follows:

LAM([PSWD(password)] [NOINC] [{VAR│NOVAR}]

[ARC={date│Lx│-y}] [ARCINC={date│Lx│-y}] [ARCALL={date│Lx│-y}])

where:

password
Specifies a four-letter, LIBRARIAN member password consisting of
strictly alphabetic characters.

date
Specifies a date in the form of YYMMDDHHMMSS. An even number of
digits can be omitted from the right. LIB/AM assumes the highest
possible value for omitted digits.

x
Specifies the numeric absolute level of an archived member. The
letter L must preceed the absolute level number.

y
Specifies the numeric relative level of an archived member. A
minus sign (-) must preceed the relative level number.

For more explanation of these LAM sub-keywords, see the CA-LIBRARIAN User
Guide. If you were using TSO online, you could issue the following TSO
commands to list a CA-LIBRARIAN member, for example,
LIBR.DEMO(COBPGM), using IEBGENER:

ALLOC F(SYSIN) DUMMY
ALLOC F(SYSPRINT) DUMMY
ALLOC F(SYSUT2) DS(*)
LAMBASTE F(SYSUT1) DS('LIBR.DEMO(COBPGM)') PGM(IEBGENER)
FREE F(SYSIN SYSPRINT SYSUT2)

Notes:

1. LAMBASTE enforces LAM sub-parameter syntax and ignores a LAM
sub-parameter that is mutually exclusive with another LAM
sub-parameter scanned first.

2. LAMBASTE forces the allocation dataset to be input only. The LRECL is
set to 80, the BLKSIZE to 3120, and the RECFM to 'FB'. These
settings are for LAM use only, and do not change the DCB attributes
of the CA-LIBRARIAN Master file. The program can always reblock
the records.

3. LAMBASTE always frees the specified ddname before allocating it,
there is no need to free it beforehand.

4. LAMBASTE always frees the specified ddname after execution of the
specified program.

5. Dynamic concatenation is currently not supported by LAM, so
concatenation support is not coded in LAMBASTE.

6. LAMBASTE is coded to couple allocation and program invocation in a
single execution of LAMBASTE.

7. If you use the LAMBASTE command in a CLIST, you may want to turn-on
prompting with the "CONTROL PROMPT" statement.

8. The LAMBASTE command supports standard TSO abbreviations of command
syntax. Therefore, DATASET or DSNAME can be abbreviated DS,
FILE or DDNAME can be abbreviated F, and PROGRAM can be
abbreviated PGM.


martin9
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts User access certification In Mainfram... Virendra Shambharkar All Other Mainframe Topics 4 Tue Oct 03, 2017 12:32 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us