View previous topic :: View next topic |
Author |
Message |
misfit Beginner

Joined: 01 May 2003 Posts: 26 Topics: 9 Location: India
|
Posted: Thu Jul 22, 2004 10:20 am Post subject: Problem running LM functions in Batch |
|
|
Hi,
I have following code which works fine when executed online under TSO.
Please note, the DSNAME is passed properly before this code and there is no error there.
Code: |
ADDRESS ISPEXEC
"LMINIT DATAID(dsnm) DATASET(&DSNAME) "
"LMOPEN DATAID(&dsnm) OPTION(INPUT) "
mem = 'LISTDOCO'
"LMMFIND DATAID(&dsnm) MEMBER(&mem) STATS(YES) " |
Now when i run my exec in batch it gives me -3 or 20 return code. I specified ADDRESS TSO on top of ADDRESS ISPEXEC but no fruits.
If i give the following, it still doesnt work
Code: |
"ISPEXEC LMINIT DATAID(dsnm) DATASET(&DSNAME) "
"ISPEXEC LMOPEN DATAID(&dsnm) OPTION(INPUT) "
mem = 'LISTDOCO'
"ISPEXEC LMMFIND DATAID(&dsnm) MEMBER(&mem) STATS(YES) "
|
Can someone show me the way ..  _________________ <i><b> Don't wish it were easier. Wish you were better. </b></i> |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Jul 22, 2004 12:39 pm Post subject: |
|
|
Can you post your SYSTSPRT output?
This is what I got (my exec name is TEST64):
READY
PROFILE PREFIX(SUPERK)
READY
ISPSTART CMD(%TEST64) NEWAPPL(ISR)
SUPERK.SUPERK#.JOB07268.D0000103.? was preallocated (no free was done).
READY
END |
|
Back to top |
|
 |
|
|