Abend code:s000 u0102 err



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Abend code:s000 u0102 err

Postby SKANDA » Tue Jan 03, 2017 7:11 pm

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
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time

Re: Abend code:s000 u0102 err

Postby enrico-sorichetti » Tue Jan 03, 2017 7:26 pm

start by using a proper
//SYSPRINT DD   SYSOUT=<somesysoutclass>
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Abend code:s000 u0102 err

Postby Robert Sample » Tue Jan 03, 2017 7:31 pm

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Abend code:s000 u0102 err

Postby Aki88 » Tue Jan 03, 2017 7:36 pm

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.
Aki88
 
Posts: 381
Joined: Tue Jan 28, 2014 1:52 pm
Has thanked: 33 times
Been thanked: 36 times

Re: Abend code:s000 u0102 err

Postby Aki88 » Tue Jan 03, 2017 8:05 pm

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
/*  
 

These users thanked the author Aki88 for the post:
SKANDA (Wed Jan 04, 2017 7:38 pm)
Aki88
 
Posts: 381
Joined: Tue Jan 28, 2014 1:52 pm
Has thanked: 33 times
Been thanked: 36 times

Re: Abend code:s000 u0102 err

Postby steve-myers » Tue Jan 03, 2017 8:45 pm

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.

These users thanked the author steve-myers for the post:
SKANDA (Wed Jan 04, 2017 7:38 pm)
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Abend code:s000 u0102 err

Postby SKANDA » Thu Jan 05, 2017 12:39 pm

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
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time

Re: Abend code:s000 u0102 err

Postby NicC » Thu Jan 05, 2017 1:45 pm

Locked - a new question requires a new topic (in the correct part of the forum).
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: Abend code:s000 u0102 err

Postby steve-myers » Sat Jan 07, 2017 9:12 am

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post