Operator

INSPECT REPLACING LEADING SAPCES BY LITERAL

INSPECT REPLACING LEADING SAPCES BY LITERAL The following COBOL program depicts the use of  INSPECT REPLACING LEADING SAPCES BY LITERAL        01 TEST-STRING   PIC X(50) VALUE SPACES.        01 WS-COUNTER    PIC 9(9)  VALUE ZEROES.        01 SEARCH-STRING PIC X(2)  VALUE SPACES.              MOVE ‘

INSPECT REPLACING LEADING SAPCES BY LITERAL Read More »

Mainframe Job for pulling NDM stats DMBATCH utility helps in pulling  the data in batch mode from NDM. The following Job uses DMBATCH to pull information from NDM in batch. It could be really helpful in reporting the processes that failed in the cycle. //NDMSTAT    JOB (ACC INFO,,,,,XXXX),’         ‘,CLASS=M,    //            MSGCLASS=Y,NOTIFY=&SYSUID              //DELETE   EXEC PGM=IEFBR14                                           //DD01     DD 

Read More »

ISREDIT MACROS Picture Strings A picture string in a FIND, CHANGE, or EXCLUDE command allows you to search for a particular kind of character without regard for the specific character involved. You can use special characters within the picture string to represent the kind of character to be found, as follows:   String MeaningP’=’    Any

Read More »

CLIST to Allocate Libraries The following CLIST can be used  to Allocate clist library to Sysproc, panel library to ISPPLIB, message library to ISPMLIB and skel library to ISPSLIB using the ALTLIB command. ALTLIB ACTIVATE APPLICATION (CLIST) +                                 DATASET(‘USERID.CLIST’) UNCOND                   SET &ALTLIBRC = &LASTCC                                        IF  &ALTLIBRC NE 0 THEN +                                         WRITE &SYSICMD: ALTLIB(ACTIVATE)

Read More »

INSPECT REPLACING CHARACTERS BY LITERAL BEFORE INITIAL LITERAL

INSPECT REPLACING CHARACTERS BY LITERAL BEFORE The following COBOL program depicts the use of  INSPECT REPLACING CHARACTERS BY LITERAL BEFORE        01 TEST-STRING   PIC X(50) VALUE SPACES.        01 WS-COUNTER    PIC 9(9)  VALUE ZEROES.        01 SEARCH-STRING PIC X(2)  VALUE SPACES.             

INSPECT REPLACING CHARACTERS BY LITERAL BEFORE INITIAL LITERAL Read More »