Clarification on LMCOPY



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Clarification on LMCOPY

Postby Viswanathchandru » Sat Nov 05, 2011 10:48 am

I have code that copies one PDS to another PDS. But when i execute the code i'm getting RC(10) from the LMCOPY statement and when i googled i got it as the Dataset is not found. Believe me I have the dataset name here in the given dataid. Still its not accepting. Can anyone suggest me where do i go wrong. Here is the code i have.
/* REXX */                               
TRACE ?I                                 
ADDRESS ISPEXEC                         
"LMINIT DATAID(INDD) DATASET('ZEAL804.MOUM)"     
SAY INDD                                 
"LMINIT DATAID(OUTDD) DATASET('ZEAL804.MOUN)"     
SAY OUTDD                               
"LMCOPY FROMID(INDD) TODATAID(OUTDD)"   
 "FROMMEM(MEM1) TOMEM(MEM2)"           
SAY COPIED                               
"LMFREE DATAID('INDD')"                 
SAY FREE INDD                           
"LMFREE DATAID('OUTDD')"                 
SAY FREE OUTDD                           


Thanks,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm
Has thanked: 25 times
Been thanked: 0 time

Re: Clarification on LMCOPY

Postby Viswanathchandru » Sat Nov 05, 2011 11:55 am

Thanks NicC for your time and reply.

1. From the Trace I got
*-* "LMCOPY FROMID(INDD) TODATAID(OUTDD)"
>L> "LMCOPY FROMID(INDD) TODATAID(OUTDD)"
+++ RC(10) +++


2. another one
ISPS100

Invalid service name
'FROMMEM(MEM1)' exceeds the allowable length of 8.


and one more small correction in the code i have attached its not
LMINIT DATAID(INDD) DATASET('ZEAL804.MOUM)"
SAY INDD
"LMINIT DATAID(OUTDD) DATASET('ZEAL804.MOUN)"
its
LMINIT DATAID(INDD) DATASET('ZEAL804.MOUM')"
SAY INDD
"LMINIT DATAID(OUTDD) DATASET('ZEAL804.MOUN')"
. Apologies for that.

Can anyone guide me where do i go wrong. Apologies if i'm wrong.

Thanks,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm
Has thanked: 25 times
Been thanked: 0 time

Re: Clarification on LMCOPY

Postby Viswanathchandru » Sat Nov 05, 2011 3:43 pm

Hi folks,
Ya it worked. The problem is with the syntax. thanks a lot for your support and time.

Regards,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm
Has thanked: 25 times
Been thanked: 0 time

Re: Clarification on LMCOPY

Postby dick scherrer » Sun Nov 06, 2011 12:09 am

Hello,

Good to hear it is working - thank you for letting us know :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Clarification on LMCOPY

Postby MrSpock » Sun Nov 06, 2011 12:24 am

Sorry nic. When I split this topic into the ISPF forum, somehow I missed your response.
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Clarification on LMCOPY

Postby NicC » Sun Nov 06, 2011 1:18 am

That's OK Mr Spock - the Romulans are on their way!
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Clarification on LMCOPY

Postby Viswanathchandru » Tue Nov 08, 2011 1:04 pm

Thanks Mr. Spock for redirecting the post to the proper topic.

Regards,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm
Has thanked: 25 times
Been thanked: 0 time


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post