mainframe

How to run dymanic SQL through IKJEFT01 Utility?

只谈情不闲聊 提交于 2019-12-18 05:17:04
问题 How can we pass parameters in SQL query while executing IKJEFT01? Example: //UNLOAD EXEC PGM=IKJEFT01 //SYSTSPRT DD SYSOUT=* //SYSTSIN DD * DSN SYSTEM(DB2X) RETRY(120) RUN PROGRAM(DSNTIAUL) PLAN(DSNTIAUL) - PARM('SQL') END //SYSPRINT DD SYSOUT=* //SYSUDUMP DD SYSOUT=D //SYSREC00 DD DSN=FCSTN.AK.XXXXXX, // DISP=(NEW,CATLG,DELETE), //SYSPUNCH DD SYSOUT=* //SYSIN DD * SELECT * FROM ABC.DEF WHERE XYZ='999' /* Instead of giving value in sql query as '999' i want to pass the value through a

How do you generate java~jrecord code for a Cobol copybook

别说谁变了你拦得住时间么 提交于 2019-12-17 06:56:19
问题 How do you use the RecordEditor to Generate Java~JRecord code from a Cobol Copybook to read/write a Binary EBCDIC Mainframe File . This a Question and answer to try an prevent some poor/misleading questions being asked or the answer can be pointed to. 回答1: File Transfer To transfer a Binary file from the Mainframe to Windows / *nix box you must do a Binary Transfer for a very simple reason: the Ebcdic --> Ascii program can not distinguish between binary fields and Text fields. Comp-3 value

How to replicate VSAM files (Mainframe) to Database?

懵懂的女人 提交于 2019-12-13 10:23:07
问题 What is an efficient solution/technology (other than ETL) to do a near real-time replication of data from a VSAM file (Mainframe) to an RDBMS (outside Mainframe) ? Note : This VSAM file has COM3 data, so the replication technology should be able to understand and transform this during the replication. 回答1: there is a product at IBM - VSAM transparancy that routes vsam calls to DB2; this can help in a migration process.. there is also federation server of IBM that gives transparancy to

JCL equivalent of CEMT NEWCOPY

时间秒杀一切 提交于 2019-12-13 06:22:19
问题 I am looking for the JCL equivalent of NEWCOPY method in CEMT/CICS: CEMT SET PROG(xxxx) NEWCOPY Any help would be appreciated. 回答1: If your answer to NealB's question is "Yes," then here are some options. Invoke CEMT via an operator command. One way to do this is to run SDSF in batch, another is to use the TSO CONSOLE command. Be advised that this requires authorization. Write a program in your preferred programming language and invoke the CICS System Programming API SET PROGRAM. Then write

DB2/Cursor program working in cobol

一个人想着一个人 提交于 2019-12-13 04:33:33
问题 My requirement is to delete data from db2 table which contains duplicate phone num(invalid phone num, set of 16 phone numbers which is hardcoded).And one phone num should be retained , that depends on sequence number(minimum value). consider main table has following data : PHONE_TAB Client_Id Phone_num Seq_num 1234 45678 15 --- delete 4444 55555 45 1234 45678 10 ---should be retained 5555 22222 25 1234 45678 20 --- delete 1234 45678 11 --- delete Note : also i have to move the rows which will

Connect to IMS with Open Database from .Net application or using JDBC ..?

纵饮孤独 提交于 2019-12-13 02:12:59
问题 I am looking to find if there are special drivers I have to use in order to connect a .NET application to IMS. On the Internet, I found articles saying that something called Open Database, provides JDBC and that it is one way to go. However, it is for java environment and I want to use .NET. My question is: How do I connect to IMS using Open Database from a .NET application (ASP.NET)? A sample would be great. 回答1: I believe the question is referring to the IMS Open Database, which is an IBM

Date format in Trailer

南楼画角 提交于 2019-12-13 00:37:15
问题 OPTION COPY OUTFIL REMOVECC, TRAILER1=('FT',DATE,55X,COUNT=(EDIT=(IIITT)), 299X,TOTAL=(370,13,SFF,EDIT=(STTTTTTTTT.TT), SIGNS=(+,-), LENGTH=13)) I have a Trailer record with the above options. In this scenario, the date is displayed in the format but I want the date to be displayed in the format 2014-10-21 only. My trailer record will look like below. FT10/21/14 04 +000000192.21 It should be like below. FT2014-10-21 04 +000000192.21 Also, in this one I have found the Count of all the records

How do we develop an application on the mainframe to access DB2/LUW without DB2/z?

点点圈 提交于 2019-12-13 00:20:31
问题 We have developed an application which runs on the mainframe (z/OS), and it uses CAF, the Call Attach Facility, to talk to DB2/z for storing its data. Those customers which already have DB2/z (and hence have to pay for it regardless) are not concerned, but there are others who want to use our application without incurring the expense of the database as well. They have expressed a desire to have our product not use DB2/z, due to the expense. Under z/OS, the licence fees for DB2 are rather high

COBOL DB2 program

只愿长相守 提交于 2019-12-12 14:52:18
问题 If I have 1 COBOL DB2 program which is calling 2 other COBOL DB2 sub programs, then how many DBRMs,Packages,Plans it will create? If I am changing any one of the sub program then do I need to recompile and bind all the programs?I am really confused with DBRMs,Plans and Packages. Regards, Manasi 回答1: Oh my... This is a huge topic so this answer is going to be very simplified and therefore incomplete. The answer depends somewhat on whether you are using the DB/2 pre-compiler or co-compiler. For

Is there a list of Special characters to be avoided in JCL/MVS Script variables

天涯浪子 提交于 2019-12-12 14:22:00
问题 I have a program that generates random pin codes. These pins are generated in Java, then stored in the mainframe, via a NATURAL program. From there, they are eventually physically printed by a batch JCL job that calls an MVS SCRIPT to print the form, with the pin code on it. I've come across some issues with special characters before such as: |{}![]^~<>; that for one reason or another do not print properly. I've also removed 0OQ1l for OCR reasons. Recently, an error came to my attention with