This REXX program receives three numbers from the user, compares the numbers to determine which is greatest, and returns the greatest number. It uses IF/THEN logic to compare the numbers and assign the greatest to a variable, which is then returned.
This document discusses using PHP as a shell scripting language by leveraging its familiarity, flexibility, and ease of use for tasks like data processing, long running processes, tools/utilities, and component testing. It covers how to set up PHP scripts with a shebang line to be executable from the command line. It provides examples of using system calls, reading from and writing to standard streams, and parsing command line arguments. The key points are that PHP can be a useful alternative to traditional shell scripts while also taking advantage of its programming language features.
tensorflow/keras model coding tutorial 勉強会RyoyaKatafuchi
1) The document discusses different types of deep learning models including multilayer perceptron (MLP), convolutional neural network (CNN), and recurrent neural network (RNN) models.
2) It provides code examples for building a Keras model using a functional API for an MLP model with Dense and Input layers, and a sequential API example.
3) It also shows code for building a CNN model in Keras with convolutional and max pooling layers, flatten, dense layers and model compilation details.
This document provides an introduction to CoffeeScript and how to use it. It discusses running CoffeeScript in a web browser or on OSX, Linux, and Windows. It then covers CoffeeScript basics like functions, parameters, operators, conditionals, scope, context, properties, default values, splats, and arrays.
A command macro is a text file that contains one or more commands and/or command macro statements and that has a name ending with the suffix .cm. You invoke a macro by entering its name. The operating system then sequentially executes the commands and macro statements in the file.
A command macro is useful to replace one of the following:
a long command string that you issue frequently
a group of internal commands, command macros, and/or program modules that together perform an operation you regularly require
a sequence of internal commands, command macros, and/or program modules that you execute in a certain way depending on external factors
Easytrieve plus is an information retrieval and data management system. It is a primitive form of 4GL whose English like language and simple syntax provide the tools for easy data retrieval and report generation, Easytrieve Plus can now produce reports in HTML format. This feature allows you to create reports that can be viewed either from a local disk or LAN or from a World Wide Web server using the Web browser.
The document provides details about Rexx Shih's profile, including his work experience, skills, education, certifications, and project experience. It consists of several sections:
- Personal profile and skills: Outlines Rexx's expertise in IT solutions, project management certifications, and business analysis skills.
- Work experience: Lists Rexx's roles and responsibilities in various companies from 2007-2014, including as a system engineer, business analyst, and section manager.
- Education: Details Rexx's master's degree in information technology management.
- Project experience: Provides summaries of 9 projects Rexx worked on, describing objectives, roles, technologies used, and benefits achieved. Projects involved areas like project
This document provides an overview of the SORT control statements and functions in IBM z/OS Syncsort including:
- SORT FLOW shows the basic processing flow of a SORT job
- STOPAFT and SKIPREC parameters control the number of records sorted/copied
- INCLUDE/OMIT allows filtering records based on specified conditions
- INREC reformats input records before sorting
- JOIN merges sorted data from two different files based on matching fields
- Other functions covered include OUTREC, SUM, DUPKEYS and OUTFIL reports
A macro is a group of one or more SQL statements that are given a name and executed with a simple command. Macros ensure multiple SQL steps are not forgotten as the macro remembers them. When a macro contains multiple commands, Teradata treats them as a single transaction so either all the commands succeed or none of them do. A sample macro is provided that selects data from different tables and conditions in one transaction.
This document discusses using PHP as a shell scripting language by leveraging its familiarity, flexibility, and ease of use for tasks like data processing, long running processes, tools/utilities, and component testing. It covers how to set up PHP scripts with a shebang line to be executable from the command line. It provides examples of using system calls, reading from and writing to standard streams, and parsing command line arguments. The key points are that PHP can be a useful alternative to traditional shell scripts while also taking advantage of its programming language features.
tensorflow/keras model coding tutorial 勉強会RyoyaKatafuchi
1) The document discusses different types of deep learning models including multilayer perceptron (MLP), convolutional neural network (CNN), and recurrent neural network (RNN) models.
2) It provides code examples for building a Keras model using a functional API for an MLP model with Dense and Input layers, and a sequential API example.
3) It also shows code for building a CNN model in Keras with convolutional and max pooling layers, flatten, dense layers and model compilation details.
This document provides an introduction to CoffeeScript and how to use it. It discusses running CoffeeScript in a web browser or on OSX, Linux, and Windows. It then covers CoffeeScript basics like functions, parameters, operators, conditionals, scope, context, properties, default values, splats, and arrays.
A command macro is a text file that contains one or more commands and/or command macro statements and that has a name ending with the suffix .cm. You invoke a macro by entering its name. The operating system then sequentially executes the commands and macro statements in the file.
A command macro is useful to replace one of the following:
a long command string that you issue frequently
a group of internal commands, command macros, and/or program modules that together perform an operation you regularly require
a sequence of internal commands, command macros, and/or program modules that you execute in a certain way depending on external factors
Easytrieve plus is an information retrieval and data management system. It is a primitive form of 4GL whose English like language and simple syntax provide the tools for easy data retrieval and report generation, Easytrieve Plus can now produce reports in HTML format. This feature allows you to create reports that can be viewed either from a local disk or LAN or from a World Wide Web server using the Web browser.
The document provides details about Rexx Shih's profile, including his work experience, skills, education, certifications, and project experience. It consists of several sections:
- Personal profile and skills: Outlines Rexx's expertise in IT solutions, project management certifications, and business analysis skills.
- Work experience: Lists Rexx's roles and responsibilities in various companies from 2007-2014, including as a system engineer, business analyst, and section manager.
- Education: Details Rexx's master's degree in information technology management.
- Project experience: Provides summaries of 9 projects Rexx worked on, describing objectives, roles, technologies used, and benefits achieved. Projects involved areas like project
This document provides an overview of the SORT control statements and functions in IBM z/OS Syncsort including:
- SORT FLOW shows the basic processing flow of a SORT job
- STOPAFT and SKIPREC parameters control the number of records sorted/copied
- INCLUDE/OMIT allows filtering records based on specified conditions
- INREC reformats input records before sorting
- JOIN merges sorted data from two different files based on matching fields
- Other functions covered include OUTREC, SUM, DUPKEYS and OUTFIL reports
A macro is a group of one or more SQL statements that are given a name and executed with a simple command. Macros ensure multiple SQL steps are not forgotten as the macro remembers them. When a macro contains multiple commands, Teradata treats them as a single transaction so either all the commands succeed or none of them do. A sample macro is provided that selects data from different tables and conditions in one transaction.
This document discusses techniques for tuning DB2 queries. It recommends:
1) Disabling list prefetch using the OPTIMIZE FOR 1 ROW clause to give DB2 flexibility in choosing an index scan or table scan.
2) Using the OPTIMIZE FOR n ROWS and FETCH FIRST n ROWS ONLY clauses, where n can be any value, to influence the optimizer's decision.
3) Adding trivial operations like +0 or CONCAT '' to not change results but possibly change the optimizer's plan.
It also recommends always keeping statistics updated, using appropriate columns in queries, leveraging indexes, and applying filtering with WHERE clauses. Tuning is suggested in three phases: system, database,
The document discusses PL/SQL interview questions and answers. It covers topics like the PL/SQL virtual machine, compile vs runtime errors, exception handling, the error stack, triggers calling stored procedures, database objects, and instantiating objects. Specifically, it defines the PL/SQL virtual machine as translating interpreted code for the RDBMS kernel. It also explains that compile errors occur during code creation or storage while runtime errors happen during code execution. Finally, it notes that instantiating an object type involves calling the constructor and providing actual parameters if required.
PLI Presentation for Mainframe Programmers. PL/I is one of the prominent language being used in Mainframe after COBOL. Still PLI being used in many banking and financial projects.
This document provides an overview of PL/SQL, Oracle's procedural language extension for SQL and the Oracle Database. It discusses key PL/SQL features like tight integration with SQL, improved performance, productivity and portability. It also covers PL/SQL programming constructs like variables, data types, control structures, procedures, functions, triggers and cursors. PL/SQL code is organized into optional declaration, executable and exception sections and allows for modular programming and error handling.
Assembler Language Tutorial for Mainframe ProgrammersSrinimf-Slides
This document provides an overview of an introductory course on IBM 370 assembly language for mainframe programmers. It covers the objectives, schedule and topics to be discussed in the course. The course will cover introduction to assembler language, addressing, machine instructions, program sectioning, assembler directives, assembling and linking programs, macro language and other topics over 9 sessions spanning 5 days. Session 1 introduces statement format, types of instructions, registers and data representation. Session 2 covers storage definitions, addressing operands, instruction formats and establishing addressability.
IMS DC is a hierarchical database management system supplied by IBM that runs on mainframe computers. It has two main components: Data Base (DB) processing and Data Communication (DC) processing. DC handles information in the form of messages that flow between remote terminals and application programs. Major kinds of online programs that can be written for IMS DC include inquiry programs, data entry programs, maintenance programs, and menu programs.
1) An assembler translates programs written in assembly language to machine code by translating mnemonic codes to machine code and symbols to addresses. It handles constants, literals, and addressing.
2) An assembler uses two passes. The first pass assigns addresses to lines of code and saves symbol addresses. The second pass translates opcodes, replaces symbols with addresses, and produces the object program.
3) Data structures used include an opcode table for translation, a symbol table for storing and looking up symbol addresses, and a literal table for handling literals.
This document outlines the basics of assembly language, including basic elements, statements, program data, variables, constants, instructions, translation to assembly language, and program structure. It discusses statement syntax, valid names, operation and operand fields. It also covers common instructions like MOV, ADD, SUB, INC, DEC, and NEG. Finally, it discusses program segments, memory models, and how to define the data, stack, and code segments.
This document discusses techniques for tuning DB2 queries. It recommends:
1) Disabling list prefetch using the OPTIMIZE FOR 1 ROW clause to give DB2 flexibility in choosing an index scan or table scan.
2) Using the OPTIMIZE FOR n ROWS and FETCH FIRST n ROWS ONLY clauses, where n can be any value, to influence the optimizer's decision.
3) Adding trivial operations like +0 or CONCAT '' to not change results but possibly change the optimizer's plan.
It also recommends always keeping statistics updated, using appropriate columns in queries, leveraging indexes, and applying filtering with WHERE clauses. Tuning is suggested in three phases: system, database,
The document discusses PL/SQL interview questions and answers. It covers topics like the PL/SQL virtual machine, compile vs runtime errors, exception handling, the error stack, triggers calling stored procedures, database objects, and instantiating objects. Specifically, it defines the PL/SQL virtual machine as translating interpreted code for the RDBMS kernel. It also explains that compile errors occur during code creation or storage while runtime errors happen during code execution. Finally, it notes that instantiating an object type involves calling the constructor and providing actual parameters if required.
PLI Presentation for Mainframe Programmers. PL/I is one of the prominent language being used in Mainframe after COBOL. Still PLI being used in many banking and financial projects.
This document provides an overview of PL/SQL, Oracle's procedural language extension for SQL and the Oracle Database. It discusses key PL/SQL features like tight integration with SQL, improved performance, productivity and portability. It also covers PL/SQL programming constructs like variables, data types, control structures, procedures, functions, triggers and cursors. PL/SQL code is organized into optional declaration, executable and exception sections and allows for modular programming and error handling.
Assembler Language Tutorial for Mainframe ProgrammersSrinimf-Slides
This document provides an overview of an introductory course on IBM 370 assembly language for mainframe programmers. It covers the objectives, schedule and topics to be discussed in the course. The course will cover introduction to assembler language, addressing, machine instructions, program sectioning, assembler directives, assembling and linking programs, macro language and other topics over 9 sessions spanning 5 days. Session 1 introduces statement format, types of instructions, registers and data representation. Session 2 covers storage definitions, addressing operands, instruction formats and establishing addressability.
IMS DC is a hierarchical database management system supplied by IBM that runs on mainframe computers. It has two main components: Data Base (DB) processing and Data Communication (DC) processing. DC handles information in the form of messages that flow between remote terminals and application programs. Major kinds of online programs that can be written for IMS DC include inquiry programs, data entry programs, maintenance programs, and menu programs.
1) An assembler translates programs written in assembly language to machine code by translating mnemonic codes to machine code and symbols to addresses. It handles constants, literals, and addressing.
2) An assembler uses two passes. The first pass assigns addresses to lines of code and saves symbol addresses. The second pass translates opcodes, replaces symbols with addresses, and produces the object program.
3) Data structures used include an opcode table for translation, a symbol table for storing and looking up symbol addresses, and a literal table for handling literals.
This document outlines the basics of assembly language, including basic elements, statements, program data, variables, constants, instructions, translation to assembly language, and program structure. It discusses statement syntax, valid names, operation and operand fields. It also covers common instructions like MOV, ADD, SUB, INC, DEC, and NEG. Finally, it discusses program segments, memory models, and how to define the data, stack, and code segments.
1. |
| /***************************** REXX ********************************/|
| /* This exec receives three numbers from a user and analyzes which */|
| /* number is the greatest. */|
| /*******************************************************************/|
| |
| PARSE ARG number1, number2, number3 . |
| |
| IF number1 > number2 THEN |
| IF number1 > number3 THEN |
| greatest = number1 |
| ELSE |
| greatest = number3 |
| ELSE |
| IF number2 > number3 THEN |
| greatest = number2 |
| ELSE |
| greatest = number3 |
| |
| RETURN greatest |
|
Possible Solution __________________________________________________
| |
| |
| /**************************** REXX *********************************/|
| /* This exec tests the length of a name for a data set member. If */|
| /* the name is longer than 8 characters, the exec truncates the */|
| /* extra characters and sends the user a message indicating the */|
| /* shortened member name. */|
| /*******************************************************************/|
| SAY 'Please enter a member name.' |
| PULL membername |
| |
| IF LENGTH(membername) > 8 THEN /* Name is longer than 8 characters*/|
| DO |
| membername = SUBSTR(membername,1,8) /* Shorten the name to */|
| /* the first 8 characters*/|
| SAY 'The member name you entered was too long.' |
| SAY membername 'will be used.' |
| END |
| ELSE NOP
CALL subroutine_name argument1, argument2,...
x = function(argument1, argument2,...)
2. |
| /******************************* REXX ******************************/|
| /* This exec receives a calculated value from an internal */|
| /* subroutine and displays that value. */|
| /*******************************************************************/|
| |
| number1 = 5 |
| number2 = 10 |
| CALL subroutine |
| SAY answer /* Displays 15 */|
| EXIT |
| |
| subroutine: |
| answer = number1 + number2 |
| RETURN |
|
/******************************* REXX ******************************/|
| /* This exec uses a PROCEDURE instruction to protect the variables */|
| /* within its subroutine. */|
| /*******************************************************************/|
| number1 = 10 |
| CALL subroutine |
| SAY number1 number2 /* displays 10 NUMBER2 */|
| EXIT |
| |
| subroutine: PROCEDURE |
| number1 = 7 |
| number2 = 5 |
| RETURN
|
| /****************************** REXX *******************************/|
| /* This exec uses a PROCEDURE instruction with the EXPOSE option to*/|
| /* expose one variable, number1, in its subroutine. The other */|
| /* variable, number2, is set to null and displays its name in */|
| /* uppercase. */|
| /*******************************************************************/|
| number1 = 10 |
| CALL subroutine |
| SAY number1 number2 /* displays 7 NUMBER2 */|
| EXIT |
| |
| subroutine: PROCEDURE EXPOSE number1 |
| number1 = 7 |
| number2 = 5 |
| RETURN
3. |
| /****************************** REXX *******************************/|
| /* This exec receives a calculated value from an internal */|
| /* function and displays that value. */|
| /*******************************************************************/|
| |
| number1 = 5 |
| number2 = 10 |
| SAY add() /* Displays 15 */|
| SAY answer /* Also displays 15 */|
| EXIT |
| |
| add: |
| answer = number1 + number2 |
| RETURN answer