Professional Documents
Culture Documents
Sometimes when we try to NEWCOPY our changes in CICS environment, we might get error message saying RES COUNT in not zero and it doesn't allow us to NEWCOPY. SE PROG(BSTOREWD) NEW STATUS: RESULTS - OVERTYPE TO MODIFY Prog(BSTOREWD) Leng(0000124672) Cob Pro Ena Pri Res(004) Use(0000000602) Any Uex Ful Qua Cic
Ced Len
CANNOT NEWCOPY
Res count is a parameter of PPT table in CICS. Res count shows the number of times the program is currently used. Say in the above example res count is 4 which indicates 4 other tasks or users are using the module BSTOREWD. NEWCOPY cannot be done until the RESCOUNT becomes zero. ( Res Count will be Zero when the task completes). So we need to wait until all other users completed their task .
Power of SS in DFSORT
Consider the below contents as some input record KANNA TCSL INFY WIPRO IBM CTS If we want to include only the records that contain the characters TCSL,INFY,WIPRO,IBM,CTS we usually go for include or omit and we write the control cards as below INCLUDE COND=(1,5,CH,EQ,C'TCSL',OR, 1,5,CH,EQ,C'INFY',OR, 1,5,CH,EQ,C'WIPRO',OR, 1,5,CH,EQ,C'IBM',OR, 1,5,CH,EQ,C'CTS') But there is an easy function called 'SS' to club this altogether and achieve this. Using SS we can write the control card as INCLUDE COND=(1,5,SS,EQ,C'TCSL ,INFY ,WIPRO,IBM ,CTS ') This will produce the same result as the above control card. The length of the string should match the length provided in the include card. for example to write CTS we should append 2 blanks as 'CTS ' since the length given in the card is '5'. Another power feature is it can search a constant within the field. Say for example consider the below records WOMENS DAY WAS NEWS YESTERDAY ALLDAY NEWS IS NITHAYANANDHA
General
IPL CRICKET WILL BE FUTURE NEWS NO SETHIGAL IN THIS LINE If we want to include the records that contain NEWS we can have the control card as INCLUDE COND=(1,70,SS,EQ,C'NEWS') The result will be WOMENS DAY WAS NEWS YESTERDAY NITHAYANANDHA IS ALLDAY NEWS IPL CRICKET WILL BE FUTURE NEWS
DATA DIVISION. WORKING-STORAGE SECTION. 01 SAMPLE PIC X(2) VALUE '1A'. 01 SAMPLE1 PIC 9(2) COMP-3. PROCEDURE DIVISION. MOVE SAMPLE TO SAMPLE1 DISPLAY SAMPLE1 ADD 1 TO SAMPLE1 DISPLAY SAMPLE1
Most of would think this will result S0C7 as the SAMPLE1 will contain the alphanumeric value "1A". But it won't result S0C7. (Please try and see). For calculation, the system will take only the lower order nibbles. S0C7 will occur only when an invalid value is present in the lower order nibble where invalid value means not simply alphabetic
General
characters stored in numeric field. This is because, if you try to move 1A to a numeric field, the COBOL compiler will do an automatic data conversion. 1A will be represented internally as 1 ==> F1 A ==> C1 1A FC 11 Here the lower order nibbles contain numeric 11 so if you move 1A to a numeric field and try to manipulate that filed, it wont cause a S0C7 , because it contains 11. Suppose you are moving 9* to a numeric field. That will be represented internally as 9* F5 9C Now, the lower order nibbles contain an invalid character C, if you try to manipulate this field, it would cause a S0C7 abend.
ISPF Option 6
We all know that using option 6 in ISPF we can enter native TSO command in mainframe environment. (I think in CITI we mainly use this option while SEND or RECEIVE files to host) The command option screen has a provision to store automatically previously used commands which can easily accessed by placing the cursor over there. But sometimes you might wonder that only sometimes some commands are getting stored and some or not stored. The actual reason behind is using TSO as prefix.
General
If you enter TSO as prefix and enter any command it will not be stored. If you don't prefix TSO it will be stored. ( Actually we don't need to use TSO while in option 6)
General