Tuesday, April 28, 2015

C compiler pragmas

Compiler Pragmas:
Compiler pragmas enable you to control various elements of compiler listings, code generation, and building of the object file.


Pragma
Description
ENV
Specifies the intended run-time environment of an object file.
ERRORFILE
Directs Errors and warnings to specified file
ERRORs
Directs compiler to terminate compilation if detects more than specified errors.
EXTENSIONS
Allow source code to use syntax extensions and standard library extensions by HP
HIGHPIN
Specifies that object file should run in HIGHPIN(>=256).
INSPECT
Symbolic debugger is default debugger
NOINSPECT
Systems default debugger is default debugger
RUNNABLE
Directs the compiler to generate executable object instead of linkable
RUNNAMED

SAVEABEND
Controls whether system generates saveabend or not
SYMBOLS
Controls the inclusion of symbols information in the object file.
WIDE
Specifies the data model, which defines the size of the data type
int.
XMEM
Controls which memory model should be used large or small by the object.
NOXMEM
Small memory model.


Wednesday, February 4, 2015

DEFINES


DEFINE CLASSES
CATALOG SQL Catalog will be replaced with DEFINE 
ADD DEFINE =JUNE^RECORDS, CLASS MAP, FILE \ACCT.$DISK.RECORDS.JUNE
DEFAULTS  Defaults like VOL, SUBVOL will be replaced with DEFINE
MAP FILE will be replaced with DEFINE name 
SPOOL Attribute of SPOOLER job, such as location and number of copies 
ADD DEFINE =SPOOLER^JOB, CLASS SPOOL, COPIES 2, LOC $S.#HOLD
ENABLING/DISABLING DEFINES
Enabling  DEFMODE ON
Disabling DEFMODE OFF

TEDIT BASIC Commands

F1 RECONF  O Allow to change the options like search options 
RECONF  F Allow to change the options of functions  
F12   Searching options window will be prompted  
 Search for:
   In lines: F/L
 In columns: 1:239
    Options: i
 When found:
F11 +++++++++++++++ Search forward
SHIFT+F11 search backword 
F1 MARK  X Book mark the locations
GOTO X Goto bookmark 
     
   
F1 SH ON  Display line numbers 
SH OFF LINE NUMBERS OFF
DI  X Xth Line will be displayed
BR Break line 
OPEN 2 OPEN 2nd file 

Wednesday, January 28, 2015

Context and Context Free Servers

Context free servers/Services: Servers(Services) that don't save the information about previous request is referred as Context free servers.

Servers that save the information about previous request as a reference for a subsequent request are called Context Servers.

Various components of Pathway subsystem

Process: Any running program is called process. Each time a program is executed, operating system creates a process. If two different programs are executed, 2 processes will be created. If single program is executed by two different users concurrently, OS will create 2 processes.

PATHMON: is a Pathway monitoring process. It supervises all the processes in the pathway environment. Only one PATHMON process will be there for any Pathway.

PATHCOM: is a command line interface, which allow system operators to communicates with PATHMON to control the processes.

SCREEN COBOL Library: Contains the requesters programs after they are compiled by SCOBOLX compiler, which means all the requester screens objects will be present in SCL.

TCP(Terminal Control Process):
 

What is IPCs??

IPCs -- Inter Process Communication messages commonly known as IPCs. Requesters and Servers communicate each other through IPCs.

There are 2 types of IPCs messages:
1. Request 2. Reply

Request Messages:

Request Messages are sent from a Requester and received by particular Service of the SERVER.

Commonly Request messages are initiated from SCREEN COBOL with SEND statement. Pathway then routes the request to a server containing the service. Server then reads the message using special file $RECEIVE.

Reply Messages:

Reply messages are formatted by SERVICE and sent back to the requester after the service is completed. Reply message is written to $RECEIVE and pathway routes this information to requester.

Reply message contains the requested information if the service is successful or error message if the service is not successful.

Source: HP PathMaker Manual