Thursday, 25 May 2017

Useful Mainframe Commands


1.       CANCEL – to come out of PDS
2.       EXPORT to XX (EXPORT TO GSIMSJB) à Ok, report was exported to ‘T6264PA.GSIMSJB.REPORT’.
3.       SORT – In command line of file (TSO Command).
4.       COLS – shows column numbers.
5.       ((6  )) – to delete 6 col  from left.
6.       Swapbar
7.       TSO Mainview
8.       = X (Terminate ISPF)
9.       NUMOFF (Input file to  be created in ‘NUMOFF’ REXX)
10.   TSO FREE ALL
11.   C ALL ‘X’  'Y’
12.   TSO LISTCAT (TSO CLIST / TSO REXX / TSO FOCUS)
13.   RETP (P12 / PF24) – to retrieve previous command
14.   SRCHFOR ‘X’
15.   NUMON STD / COL ON / RECOVERY ON /UNDO
16.   CHANGE ‘WX’ ‘WS’ ALL; CHANGE ‘MADRAS’ ‘CHENNAI’ ALL
17.   HI COB / HI JCL ß To highlight
18.   UC (UCC) / LC (LCC) ß To convert Uppercase / Lowercase
19.   Labeling - .A / L .A  (To locate the label) / Reset All ß will remove all labels
20.   PRE * (to see all job logs (yours) in Spool.
21.   PRE AR294 (Job logs of other people spool)





1. To check the DATA SET as if which job is using it.



WHOHAS



2. To Search from first position.



F '2372737' 1



3. Book Marking in code.



.A (enter)  then L .A    (Here 'L' is for locate)



4. Search For Utility - 3.14



5. To Copy all elements in a file - S*



6. To retrieve last 10 commands.



RETP



7. To swap & view all screens.



SWAP LIST / F9 & List



Note - To go on particular screen place cursor on that and then enter. Remember screens by number i.e 1,2,23,4...etc.




8. Checking Logs



Pre * , Owner * or Owner ID




9. To refresh Mainfarme & start new session.



Take down 't' ,
t TSO



10.  To search in a DATASET.  (File must be open in  edit mode).



X ALL; F ALL  2661634
DEL X ALL




11. To Compare files.



3.12 (SuperCE)
To further save the comapre file : CREATE and C99999 and then give a name to result DATASET. Further you can transfer the same to desktop.



12. To set Keys.



PANEL Keys - Go to start and then type 'KEYS'
JOB Keys - Go to any Jon and then type 'KEYS'



13. To transfer file from Mainframe to Desktop and vice versa.



START - Option 6 - Session - File Transfer

Transfer Method – ASCII
If File Exists – Overwrite
Record Format – Default

File name Local - ABC.xls  (if text file then ABC.TXT)
File Name Host  - 'ABC'



SETTINGS - Select 'MAINFRAME' & 'TSO'
Transfer speed 32K




14. To check the details of the Job i.e XY164SRH J0045543 XY164 1 PRINT B  CC  001 23339


First OWNER XY164 and then PRE *














15. If we do not find PROC in STEPLIB file, than we will check in JOBLIB and if not found in JOBLIB than we will check in system library.


i.e FOCUS.PRD.MASTER




16. Cursor Scroll - CSR




17. Disk cleanup - To clean space -> RUN 'DISK CLEANUP'


18. Error = 00080N (It is 805 & N is '5' only).





19. RAPID SQL  -- For Export do 'Right Click' on result and then 'SAVE'.




20. JCL ---   &&XYZ  (Here '&&' hence temporary file)
              ---   &XYZ  (Here '&' hence Symbolic Parameter)


21. HRECALL =      --- To recall a dataset.


22. SORT CHANGED - To see which element of a dataset changed recently.


23. 3.13 (Super CE Utility) -- To compare two datasets & get result.

24. To copy SuperC compare file to a file and then FTP to mainframe. -- CREATE  & C99999
25. To check any file name in the JCL do - JSCAN -- It will show the complete name of the file and replace symbolic parameters which actual values.
26. PROF - Profile command to check what all on in any program/pds i.e HEX ON, CAPS ON etc.


27. To check all jobs including production jobs. --  OWNER *



No comments:

Post a Comment