Page 1 of 1

Abend code:s000 u0102 err

PostPosted: Tue Jan 03, 2017 7:11 pm
by SKANDA
Hi all,

when i submit the jcl which is the FTP Jcl i got the above abend code.
And also stating as sysprint statement missing.Following is the code i have used.

//FTP00001 EXEC PGM=IKJEFT01,DYNAMNBR=50         
//OUT      DD   SYSOUT=*                         
//AMSDUMP  DD   SYSOUT=*                         
//SYSTSPRT DD   SYSOUT=*                         
//SYSIN    DD   DUMMY                             
//SYSPRINT DD   DUMMY                             
//OUTPUT   DD   SYSOUT=*                         
//SYSTSIN  DD  *                                 
FTP (EXIT
123.25.658.96
fghjk
zxcv
pwd
ascii
cd <C:\Users\8888\Desktop\helo.txt>
pwd
PUT '<eee.fff.ggg>'
QUIT
/*
 


please help me to fix this abend..
Thanks,
Skanda

Re: Abend code:s000 u0102 err

PostPosted: Tue Jan 03, 2017 7:26 pm
by enrico-sorichetti
start by using a proper
//SYSPRINT DD   SYSOUT=<somesysoutclass>

Re: Abend code:s000 u0102 err

PostPosted: Tue Jan 03, 2017 7:31 pm
by Robert Sample
Usually, batch FTP is done without invoking TSO:
//FTP     EXEC PGM=FTP,REGION=8M,PARM='-e '                        
//SYSPRINT  DD SYSOUT=*                                            
//OUTPUT    DD SYSOUT=*                                            
//INPUT     DD DATA,DLM='$$' INPUT MUST NOT HAVE LINE NUMBERS      
testcase.boulder.ibm.com                                            
anonymous                                                          
user@company.com                                              
cd /toibm/mvs                                                      
bin                                                                
put <filename>    
$$                                                                  
Second, if you are attempting to ftp from the mainframe to a desktop, you need to be aware that few, if any, desktop computers run the software required to act as a server and receive FTP requests. FTP has to be done to a server, which has software listening on the appropriate port, as opposed to a desktop, which does NOT have software listening on the appropriate port.

Re: Abend code:s000 u0102 err

PostPosted: Tue Jan 03, 2017 7:36 pm
by Aki88
Hello,

Your JCL, if I have it right, is a direct copy of this link, with minor changes.
Did you try checking the manual's link that superk has shared on the page; it gives the syntax of all the commands that are used in the JCL shared; that should give you enough information to build a simple FTP JCL.

Also, do you have the right level access in place to use FTP, IIRC some sites restrict this usage and attempting it generally results in a job failure and/or revoke of TSO access (worst case); this can be checked with your local site-support.
Lastly, if this JCL is executed as-is (when the accesses are in place), it returns:


DD:INPUT statement not found.
 


Note: I haven't changed the IP to a valid one.


READY                                  
FTP (EXIT                              
READY                                  
123.25.658.96                          
IKJ56621I INVALID COMMAND NAME SYNTAX  
READY                                  
FGHJK                                  
IKJ56500I COMMAND FGHJK NOT FOUND      
READY                                  
ZXCV                                  
IKJ56500I COMMAND ZXCV NOT FOUND      
READY                                  
PWD                                    
IKJ56500I COMMAND PWD NOT FOUND        
READY                                  
ASCII                                  
IKJ56500I COMMAND ASCII NOT FOUND      
READY                                  
CD <C:\USERS\8888\DESKTOP\HELO.TXT>
IKJ56500I COMMAND CD NOT FOUND      
READY                              
PWD                                
IKJ56500I COMMAND PWD NOT FOUND    
READY                              
PUT '<EEE.FFF.GGG>'                
IKJ56500I COMMAND PUT NOT FOUND    
READY                              
QUIT                                
IKJ56500I COMMAND QUIT NOT FOUND    
READY                              
END                                
 


Notice the multiple syntax errors.

Re: Abend code:s000 u0102 err

PostPosted: Tue Jan 03, 2017 8:05 pm
by Aki88
In-line with what Mr. Sample has pointed out in his second point, here is a quick and dirty tested JCL (I have removed my user details):


//STEP001  EXEC PGM=IKJEFT01                  
//STEPLIB  DD DSN=CEE.SCEERUN,DISP=SHR        
//         DD DSN=CEE.SCEECICS,DISP=SHR        
//         DD DSN=CEE.SCEELKED,DISP=SHR        
//SYSTSPRT DD SYSOUT=*                        
//SYSPRINT DD SYSOUT=*                        
//SYSABOUT DD SYSOUT=*                        
//SYSDUMP  DD SYSOUT=*                        
//SYSOUT   DD SYSOUT=*                        
//SYSTSIN DD *                                
 FTP                                          
END                                            
/*                                            
//SYSIN    DD *                                
<IP ADDRESS HERE>                        
<LOGON ID HERE>                                
<PASSWORD HERE>                                
CD TEST --> FOLDER NAME HERE                  
PUT 'MAINFRAME DSN HERE' DESKTOP-FILE-NAME-HERE
QUIT
/*  
 

Re: Abend code:s000 u0102 err

PostPosted: Tue Jan 03, 2017 8:45 pm
by steve-myers
Going back to the second part of Mr. Sample's post.
  • You must install a program known as an FTP server on your workstation.
  • After the FTP server is running, it must be configured.
  • You must update Windoze parameters to allow machines other than your workstation to send connection requests to the IP "port" used for FTP.
  • You probably have to alter IP definitions elsewhere.
These tasks should be done by your support. They are beyond the scope of assistance that is appropriate for a generic support forum like this one.

Re: Abend code:s000 u0102 err

PostPosted: Thu Jan 05, 2017 12:39 pm
by SKANDA
Hi all,
Thank you all for your great response.
I have few more doubts to ask.

(i) When I was trying to connect with FTP Server it prompts as "ftp: connect: Connection refused"
Is FTP server software is the one which helps to connect with the FTP server. :?

(ii) How can I find whether the system is installed with ftp server software or not. If not will it be available from the net source?
If that the case which FTP server software is suitable for windows 7

Thanks all,
Skanda

Re: Abend code:s000 u0102 err

PostPosted: Thu Jan 05, 2017 1:45 pm
by NicC
Locked - a new question requires a new topic (in the correct part of the forum).

Re: Abend code:s000 u0102 err

PostPosted: Sat Jan 07, 2017 9:12 am
by steve-myers
A z/OS completion code potentially is a 32-bit quantity. The hexadecimal digits are potentially organized as

abcdefgh

Digits a and b are possible flags.

Digits c, d and e represent a system completion code following an ABEND. Finally. digits f, g, and h represent either a normal return, with decimal values 0 through 4095, or user ABEND code, again with decimal values 0 through 4095. So, for whatever, unknown reason, ??000066 was formatted as S000, U0102.