Page 1 of 1

Getting XCPR010I Error

PostPosted: Wed Jan 06, 2016 7:21 pm
by nikesh_rai
Hi Friends,

I am using Connect:Direct to transfer file from Mainframe to Unix, however getting below error messages.

Function     => COPY                    Start Time   => 13:38:13
Process Name => CDTOFTL                 Stop Time    => 13:38:13
Process Num  => 89,073                  Comp Code    => 00000008
                                        Comp Msg     => XCPR010I
                                        Fdbk Code    => 00000002


I tried to google for XCPR010I, but didn't get any info on fdbk = 2. Can you please help me for this. Here is the parameters I am using.



SIGNON                 
SUBMIT CASE=YES   -   
        PROC=CDPROC1    -
CDTOFTL    PROCESS PNODE=OATBS      SNODE=CD.UNIX.INT1DEV      -     
STEPCPY    COPY FROM (              -                             
                PNODE               -                             
                DSN=                -                             
                TIB.CGD.GED.IDE1.TIBEBBJ1.OUT    -                 
                )                   -                             
                TO (                -                             
                SNODE               -                             
                DSN=                -                             
'/int1dev/feeds/INT01378/data/MI1.D060116.T133809.M353010.TXT'    -
                SYSOPTS='DATATYPE(TEXT)' -                         
                DISP=RPL)           -                             
                CKPT=1M             -                             
                COMPRESS            -                             
                EXT                                               

Re: Getting XCPR010I while using Connect:Direct

PostPosted: Wed Jan 06, 2016 7:51 pm
by Robert Sample
I Googled xcpr010i and got about 658 hits back, the very first of which says
Question

FAQ: What does the errno in XCPR010I mean ? e.g. XCPR010I Open failed for copy in &FUNCTION. Errno=21.
Answer

The errno is the error number returned by the UNIX system to C:D. The exact meaning may vary on different UNIX operating systems.

Check UNIX (not C:D) documentation for the exact meaning of the errno on your UNIX system.

Some of the common errno values you may see are:

2 -No such file or directory

13 - Permission denied (i.e. userid being used does not have access to the file)

17 - File exists

21 - Is a directory (i.e. a directory was specified but no file name specified).
and the third of which indicates that errno is the fdbk code. So I would suspect your file or directory doesn't exist. And for a Unix system, that does NOT mean the file or directory fails to exist -- they could both exist but if you don't have permissions to any directory from root to the end directory, you don't have access and will get the no such file or directory error.

Re: Getting XCPR010I while using Connect:Direct

PostPosted: Wed Jan 06, 2016 7:52 pm
by Aki88
<Edit: my bad Robert, I think we both posted at almost same time; you'd already posted the link>

Hello,

See if this link helps.

It says:

Question

FAQ: What does the errno in XCPR010I mean ? e.g. XCPR010I Open failed for copy in &FUNCTION. Errno=21.

Answer



The errno is the error number returned by the UNIX system to C:D. The exact meaning may vary on different UNIX operating systems.

Check UNIX (not C:D) documentation for the exact meaning of the errno on your UNIX system.

Some of the common errno values you may see are:

2 -No such file or directory

13 - Permission denied (i.e. userid being used does not have access to the file)

17 - File exists

21 - Is a directory (i.e. a directory was specified but no file name specified).

Re: Getting XCPR010I while using Connect:Direct

PostPosted: Thu Jan 07, 2016 1:05 pm
by nikesh_rai
Thanks Robert and Aki88. It's working fine now. The destination path provided was incorrect.. :(