MC Press Online Forum
Welcome, Guest
Please Login or Register.    Lost Password?
sql2xls - then using sndemail command (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: sql2xls - then using sndemail command
#74415
Terry Winchester (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
sql2xls - then using sndemail command 2 Years, 7 Months ago Karma: 0  
There is a set of IFS tools from IBM that will allow you to change <BR>
the CCSID of a stream file: <p>ftp://testcase.boulder.ibm.com/as400/fromibm/ApiSamples/ifstool.savf <p>Terry
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#74416
Guest.Visitor (Visitor)

Birthdate:
sql2xls - then using sndemail command 2 Years, 7 Months ago  
The CHGATR command also lets you change the CCSID. Not sure what release it first appeared in.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#74417
russs@optonline.net (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
sql2xls - then using sndemail command 2 Years, 7 Months ago Karma: 0  
The chgatr did change the CCSID- but the data was still EBCDID. I believe the SNDEMAILR pgm has to be changed. It is expecting an EBCDIC file, but the SQL2XLS created an ASCII file in the IFS. There are 3 fields <p>D O_TEXTDATA S 10I 0 INZ(16777216) <BR>
D O_CODEPAGE S 10I 0 INZ(8388608) <p>and <p>D AsciiCodePage S 10U 0 INZ(819) <p>I think these paramteres deal with creating an ASCII file and converting the data from EBCDIC to ASCII. Since the data is already in ASCII, all I want to do is just move the data over, no conversion. <p>Russ
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#74414
russs@optonline.net (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
sql2xls - then using sndemail command 2 Years, 7 Months ago Karma: 0  
I believe the sql2xls creates an ASCII file in the IFS. I think the sndemail command is expecting EBCDIC and is looking to convert it to ASCII. Thats why when you get the email, you get garbage data in the spreadsheet. I think I need to change the CCSID code somewhere but not sure which pgm I should change the sql2xls or the sndemail. Any one have any ideas. <BR>
Russ
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
   MC-STORE.COM