zos

Different results using OCCURS with different compilers

守給你的承諾、 提交于 2019-12-14 02:38:51
问题 I'm attempting to output the following row using DISPLAY and am getting the correct result in Micro Focus COBOL in Visual Studio and the Tutorialspoint COBOL compiler, but something strange when running it on a z/OS Mainframe using IBM's Enterprise COBOL: 01 W05-OUTPUT-ROW. 05 W05-OFFICE-NAME PIC X(13). 05 W05-BENEFIT-ROW OCCURS 5 TIMES. 10 PIC X(2) VALUE SPACES. 10 W05-B-TOTAL PIC ZZ,ZZ9.99 VALUE ZEROS. 05 PIC X(2) VALUE SPACES. 05 W05-OFFICE-TOTAL PIC ZZ,ZZ9.99 VALUE ZEROS. It appears in

Initialization between types “const int** const” and “int**” is not allowed, why?

两盒软妹~` 提交于 2019-12-14 02:18:18
问题 Using V1.8 z/OS XL C compiler, with warnings jacked-up using INFO(ALL), I get the following warning on line 4 of the code below: WARNING CCN3196 Initialization between types "const int** const" and "int**" is not allowed. 1 int foo = 0; 2 int *ptr = &foo; 3 const int * const fixed_readonly_ptr = ptr; 4 const int ** const fixed_ptr_to_readonly_ptr = &ptr; I can't wrap my head around why I'm getting this warning. If I can assign an int pointer to a const pointer to const int (line 3), then why

Calcite for VSAM

一个人想着一个人 提交于 2019-12-13 03:25:26
问题 I am trying to expose Mainframe files for more dynamic use from both COBOL programs and external programs in Java. My reading shows that I can configure COBOL to use a JDBC connection. This may be just configuration in the JCL but I assume it is more of a preprocess. I also found the JzOS libraries will give access to the VSAM datastores themselves from JAVA. So technically I think this is possible but could not find a single post on it. I know this is getting to be an edge case but I like

How to submit JCL on IBM zOS through Java web app?

一笑奈何 提交于 2019-12-12 11:20:38
问题 Can someone tell me the best way to run a piece of JCL on IBM zOS from a Java web app on a different server (Windows). I also need get a response code back from the job. The 2 options at the moment are: 1) Using JES - But its hard to get the response back 2) Make a call through a DB2 procedure. Is there another (better) way 回答1: I"m not sure if this will help, but while I was looking for information about how to use FTP on z/OS to transfer files I saw the following article from IBM. http:/

JZOS Batch launcher - Run JCL job with java source code within SYSIN DD *

丶灬走出姿态 提交于 2019-12-12 04:17:28
问题 JOB Description: JVMLDM76 library is in the dataset WLM.ABC.DEF.LINKLIB.PDSE. JVMLDM76(load module) comes with jzos batch launcher tool kit installation. Here is my job: //JHELLO JOB MSGLEVEL=(1,1),REGION=0M,CLASS=Q,MSGCLASS=A /* NOTIFY=&SYSUID */ //JOMVS EXEC PGM=JVMLDM76,REGION=0M,TIME=NOLIMIT //STEPLIB DD DSN=WLM.ABC.DEF.LINKLIB.PDSE,DISP=SHR //SYSIN DD * /* program starts here */ public class JHelloWorld { public static void main(String args[]) { System.out.println("Hello :)"); } } //* /

Unable to access PDS in z/OS unix shell

左心房为你撑大大i 提交于 2019-12-11 23:52:11
问题 I'm trying to copy a text file from within the z/OS unix shell to a PDS titled P2.OUTPUT($010), but whenever i run the command cp file.txt "//P2.OUTPUT($010)" i get an error stating that P2.OUTPUT(-sh10) is an invalid location. For whatever reason, whenever I run the command $010 becomes -sh10. I've tried putting $010 in '' and a few other things but no matter what I do it doesn't seem to work. I believe it's an issue with accessing the file and not with the cp command because I can't view

sftp to Mainframe host

吃可爱长大的小学妹 提交于 2019-12-11 05:13:53
问题 Right now i'm kinda confused. When I want to exchange data between a PC and the Mainframe host via sftp, what are necessary steps to realise this. as far as I know I can't connect directly to the host. People told me that there is something like an OMVS environment and I have to send the files first to this environment to get the data from the server via sftp.(z/os is used and running) Is this right? And what is OMVS? and what steps are necessary to exchange files between host and OMVS? Or

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

依然范特西╮ 提交于 2019-12-09 17:54:04
问题 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

SQL differences for DB2 versions

微笑、不失礼 提交于 2019-12-07 14:16:20
问题 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 回答1: As many other answers already say, there are differences between

How can I run ISPF Edit Macros in Batch

时间秒杀一切 提交于 2019-12-06 16:25:47
问题 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? 回答1: 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