zos

SQL differences for DB2 versions

余生长醉 提交于 2019-12-05 18:45:01
We are developing software that generates and executes SQL queries for Oracle and SQL Server using ODBC drivers . We are researching the possibility to expand to DB2 , but I read that there are several versions available. DB2 for LUW , for iSeries and for z/OS. Are there any differences in SQL of SQL/PLSQL functionality in these versions? As a ISV, is it possible to get a development environment for DB2 for iSeries or z/OS As many other answers already say, there are differences between the members of the DB2 family. All DB2 are SQL-99 complaint, and each member has specific features of the

How can I run ISPF Edit Macros in Batch

删除回忆录丶 提交于 2019-12-04 22:05:44
I frequently write and use ISPF edit macros. However, invoking them in foreground is time consuming. Can I use a Rexx program to run the edit macros against all, or a selection of, members of a PDS via batch? You can use Library Management functions. You use LMINIT to get a DATA ID for the dataset to be edited and then use the LMOPEN function to open the dataset. You could then use LMMLIST if you want to perform the macro on a member or members of a PDS or PDSE. You can then use the EDIT function specifying the macro to use/invoke, which should have an ISREDIT END or ISREDIT CANCEL . If

How can I convince z/OS scp to transfer binary files?

人走茶凉 提交于 2019-12-04 09:11:39
We have SSH-based file transfer scripts currently set up for Linux-to-Linux and we're porting them to z/OS to go z/OS-to-Linux. Note that this is with USS, the UNIX system services within z/OS otherwise known as OMVS, which uses EBCDIC under the covers, not zLinux which uses ASCII. We've set up all the SSH key files and what-not, and the transfer itself is working fine. However z/OS, in it's infinite wisdom, insists on converting the files from EBCDIC to ASCII despite the fact that they're binary files - this is screwing up the content of the destination files. The scp manpage on z/OS states:

How to use the C socket API in C++ on z/OS

Deadly 提交于 2019-12-03 06:26:36
问题 I'm having issues getting the C sockets API to work properly in C++ on z/OS . Although I am including sys/socket.h , I still get compile time errors telling me that AF_INET is not defined. Am I missing something obvious, or is this related to the fact that being on z/OS makes my problems much more complicated? Update : Upon further investigation, I discovered that there is an #ifdef that I'm hitting. Apparently z/OS isn't happy unless I define which "type" of sockets I'm using with: #define

teaching my self Z/OS assembler?

吃可爱长大的小学妹 提交于 2019-12-02 21:09:42
'I've interned at a company that does a lot of mainframe work. Most of my mainframe experience has been using Java and Unix System Services. I've had some experience with the ISPF interface and C but none with assembler. I’m graduating shortly and will be taking an independent study my last semester. I’d like to stick with the mainframe and was wondering what resources could teach me mainframe assembler? Note I don’t have experience writing assembler for any platform but do understand binary, hex, and have a theoretical understanding of registers. None of the following are tutorial-like, just

How can I run my Rexx program as a batch job?

天大地大妈咪最大 提交于 2019-12-02 07:52:30
问题 I have a Rexx program that I want to run as a batch job. How can I do this? This is my program :- /* Rexx – HELLO – Write Hello World */ Say "hello World" The program is located as member HELLO in the PDS ME.USER.EXEC . A valid JOB CARD for my installation is (our environment includes ISPF/PDF as opposed to ROSCOE):- //MYJOB JOB ,,CLASS=1,MSGCLASS=H,NOTIFY=&SYSUID Note! this has been written as a tutorial 回答1: There are a number of ways that you can run the program via batch. I will cover 3

How can I run my Rexx program as a batch job?

时光毁灭记忆、已成空白 提交于 2019-12-02 05:02:57
I have a Rexx program that I want to run as a batch job. How can I do this? This is my program :- /* Rexx – HELLO – Write Hello World */ Say "hello World" The program is located as member HELLO in the PDS ME.USER.EXEC . A valid JOB CARD for my installation is (our environment includes ISPF/PDF as opposed to ROSCOE):- //MYJOB JOB ,,CLASS=1,MSGCLASS=H,NOTIFY=&SYSUID Note! this has been written as a tutorial There are a number of ways that you can run the program via batch. I will cover 3 ways all of which are different according to the environment (i.e. what they can utilise.) Method 1 - Run the

How to “sleep” in mainframe COBOL?

北城以北 提交于 2019-12-01 14:21:08
I think I'm using Enterprise COBOL for z/OS. What's a technique to emulate the functionality of, for example, the standard C library's sleep() function? Probably the easiest method is to use the Language Environment callable service CEE3DLY or CEEDLYM . Modern Coding I don't know whether you have found your answer or not. There is an IBM program that enables the machine to sleep ... or to wait : its name is ILBOWAT0 . Here is the link of a very good example on how you can code it : http://www.mvsforums.com/helpboards/viewtopic.php?t=2008&highlight=delay In this example, WAIT-TIME is in seconds

Downloading text files with Python and ftplib.FTP from z/os

走远了吗. 提交于 2019-12-01 05:46:36
I'm trying to automate downloading of some text files from a z/os PDS, using Python and ftplib. Since the host files are EBCDIC, I can't simply use FTP.retrbinary(). FTP.retrlines(), when used with open(file,w).writelines as its callback, doesn't, of course, provide EOLs. So, for starters, I've come up with this piece of code which "looks OK to me", but as I'm a relative Python noob, can anyone suggest a better approach? Obviously, to keep this question simple, this isn't the final, bells-and-whistles thing. Many thanks. #!python.exe from ftplib import FTP class xfile (file): def

which is proven solution to connect mainframe and java ? which is best in MQ series / IBM CICS Transaction Gateway?

穿精又带淫゛_ 提交于 2019-11-27 14:33:14
which is proven solution to connect mainframe and java? Which is best in WebSphere MQ / IBM CICS Transaction Gateway? Which is best solution to connect to java and mainframe COBOL? Presuming that by "Java" you mean "Java not running on the mainframe," there are multiple ways to do this. CICS Web Services (SOAP) CICS Web Support (REST/POX) MQSeries with a triggered queue "Best" is in the eye of the beholder, it depends on what you want. None of these are new, the capability has been available for several years. For option 1, the CICS Web Services Assistant will generate WSDL from COBOL existing