Skip to main content

Posts

Showing posts from October, 2022

Mastering String Manipulation in Python: An Introduction to Strings and String Slicing

Strings Strings in python are defined by enclosing with either single quotation marks (") or double quotation marks (") 1 2 str_hello = "Hello..." str_hello = 'Hello...' It does not make a difference in the way string is stored and/or used in the program based on the way it is declared (i.e., by using single quotation marks or double quotation marks).  Multi-line strings Above declaration is applicable when the string is of a single line. If we have a string that has multiple lines, multi-line string can be defined by enclosing with either three single quotation marks (''') and double quotation marks ("""). 1 2 3 4 5 6 7 multi_string = """Hello World, This is a multi-line string. enclosed in double quotation marks"""   multi_string = '''Hello World, This is a multi-line string. enclosed in single quotation marks''' Accessing part of the string by using index String is similar to

View Binding Directory Entries from SQL - IBM i

View Binding Directory Entries Binding directory is an object that holds the list of modules and/or service programs that may be required for the compilation of ILE programs.  In other words, Binding directory contains modules and/or service programs whose procedures might be used across different ILE programs and are required for compiling the ILE programs.  Can these programs be compiled without the use of binding directory? The answer is Yes. If a program is using procedures from one service program (say SRVPGM1), corresponding service program to be added against the parameter BNDSRVPGM when creating the program using CRTPGM.  So, Why is binding directory needed? In the above scenario, we are only talking about one program using procedure from one service program so it is easy to mention service program name while creating a program. Say if we have many procedures across different service programs (most common), It becomes hard to remember and adding all the service program names wh