MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Format error

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
monaco
Beginner


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Tue Feb 01, 2005 10:55 am    Post subject: Format error Reply with quote

Hi all,

I've found a strange error. I'm trying to execute a JCL consist of an unload of many tables.

If the SYSSIN is in stream the process goes ok
//SYSIN DD *
SELECT

But if the sysin uses a file the process failes:
//SYSIN DD DISP=SHR,DSN=RSA076.AIS3INT.SCRIPT.D280105
The error is:
DSNT502I ERROR IN DSNTIAUL SQL INPUT:
DSNT408I SQLCODE = -104, ERROR: ILLEGAL SYMBOL " ". SOME SYMBOLS THAT MIGHT BE
LOCK OPEN PARM ALTER BEGIN CLOSE


The file I use in the sysin comes from a FTP from local. The JCL is:
//FTPSTE01 EXEC PGM=FTP,PARM='(EXIT TRANSLATE UAB'
//OUTPUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSFTPD DD DUMMY
//INPUT DD *
170.251.103.11
xxxxx
kkkkk
ASCII
LOCSITE SBDATACONN=(IBM-1145,ISO8859-1)
GET EXTRACT/SCRIPTPRUEBA.TXT 'RSA076.AIS3INT.SCRIPT.D280105'
QUIT

Could you help me. I need to get the JCL execute an unload using a file in the syssin.

Kind regards.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Feb 01, 2005 11:52 am    Post subject: Reply with quote

Monaco,

Check the contents of the file 'RSA076.AIS3INT.SCRIPT.D280105 ' in bytes 72 thru 80. You might have some junk values in that positions. Clear them and you should do fine.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
monaco
Beginner


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Tue Feb 01, 2005 12:13 pm    Post subject: Reply with quote

Thanks Kolusu,

do you know a JCL to execute the comand 'GET' avoiding this problem?

Thanks again.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Feb 01, 2005 1:28 pm    Post subject: Reply with quote

Monaco,

Are you allocating the file on the mainframe or dynamically allocating it via FTP commands?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
monaco
Beginner


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Tue Feb 01, 2005 1:58 pm    Post subject: Reply with quote

Kolusu,

this is the JCL I use:

//**********************************************************************
//* SEND ALL THE OUTPUT FILES TO THE WINDOWS SERVER *
//**********************************************************************
//FTPSTE01 EXEC PGM=FTP,PARM='(EXIT TRANSLATE UAB'
//OUTPUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSFTPD DD DUMMY
//INPUT DD *
170.251.103.11
Jjjjjjjjj
Ppppppp
ASCII
LOCSITE SBDATACONN=(IBM-1145,ISO8859-1)
PUT 'RSA076.AIS3INT.KAETDIT.EXTRACT.D280105' EXTRACT/KAETDIT.TXT
QUIT
/*


Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Feb 01, 2005 2:56 pm    Post subject: Reply with quote

Monaco,

I guess your are creating a VB file when you perform a GET command in FTP. Your unload cards should be a FB dataset. Inorder to create a FB dataset , use the LOCSITE parameter to create a 80 byte FB dataset.

Try this JCL
Code:

//**********************************************************************
//* SEND ALL THE OUTPUT FILES TO THE WINDOWS SERVER *
//**********************************************************************
//FTPSTE01 EXEC PGM=FTP,PARM='(EXIT TRANSLATE UAB'
//OUTPUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSFTPD DD DUMMY
//INPUT DD *
170.251.103.11
Jjjjjjjjj
Ppppppp
ASCII
LOCSITE LRECL=80       
LOCSITE BLKSIZE=27920 
LOCSITE RECFM=FB       
LOCSITE SBDATACONN=(IBM-1145,ISO8859-1)
PUT 'RSA076.AIS3INT.KAETDIT.EXTRACT.D280105' EXTRACT/KAETDIT.TXT
QUIT
/*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
monaco
Beginner


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Wed Feb 02, 2005 4:21 am    Post subject: Reply with quote

Thanks Kolusu. It works.

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group