ROSCOE Command Guide and Shortcuts
ROSCOE Command Guide and Shortcuts
ROSCOE
Main Commands:
AWS:
Split screen:
F1 Screen Split
<F2> Switch between screens in the case of split
<F3> Exit the screen where the cursor is positioned.
Note: On screen 2, the member from which something is to be copied must be in 'Fetch' mode.
Editor:
I Insert lines
I (n) insert n lines
R Repeat line
RR Repeat block of lines
C Copy line
CC Mark the lines to be copied
D Exclude lines
DD Mark rows to be deleted
DELX Delete while keeping the line that has the string
DELX /string/
DELS Delete the line that contains the string
DELS /string/
1
ROSCOE - Commands
string1 – string a ser substituída, string2 – string que substituirá;
p - starting line, q - ending line.
RESET Writing reset in the editor line restores the line to the position before changes.
Where
List, A (Attach)
C L R (Personal Lib) C J R (Job log) C D R (Data Set)
A
AA Go back to the member that is being edited, if it is necessary to exit to list, consult jobs, etc.
Care: If you are in the editor and enter ENDEVOR, AWS is clean. So save the changes if there are any.
necessity.
Shortcuts:
2
ROSCOE - Commands
Auxiliary Commands:
Caution: When deleting the execution spool of a Job, never issue the command D J (Delete Job), because this
set up to delete and print.
A
[Link].I85+ {to list the sequences}
In the list <F5> Dataset Details
<F4> Sai da lista
CJ 30001 ,, R (From 30000 until the end, if it does not exceed 60000)
3
ROSCOE - Commands
Recover removed data set from disk:
Call macro: [Link]
Enter the name of the Data Set
It's going to generate a job
Auxiliary Jobs:
Book’s (XPVPX999):
Compile program:
No Endeavor:
3 - Batch;
1 – Build SCL;
Member: ADDXXXX, where ADD – Add and XXXX name of the prog or job;
2 – Add / Update
Data Set Name: ROSCOE
Member: AVPXXXX (Member to be compiled)
Compilation parameters:
No COBOL, before the IDENTIFICATION DIVISION
CBL TRUNC(BIN): to accept more than 9999 in SMALIINT fields
TEST(NONE): to accept the clause WITH DEBUGGING MODE
Ex:
CBL TRUNC(BIN), TEST(NONE)
IDENTIFICATION DIVISION.
4
ROSCOE - Commands
Request via email for the approval group #homolog
"Please submit the prog XXXXXX for approval in STG2/AVP/AVP."
Creation of Queries:
Will trigger a job 'OREX', set the CPU time parameters and number of pages;
In Data set:
[Link] (AVP+) - list all members
Create BIND:
5
ROSCOE - Commands
Type in the command line:
[Link]
NDVRPROC
To change in Cobol:
Move9 to RETURN-CODE
No JCL:
To release sysout of the job that was uploaded in the Backup in CTRL-D
R in front of the JOB
Confirm: Y
RST0365C (for sysout of JOB)
RST0060C (for report)
6
ROSCOE - Commands
Source file
Destination file with the same LRECL (Size)
O R E X - S U L A M E R I C A S E G U R O S User = MUX0304
---------------------------------------------------------------------------
NOME DO JOB ........ AVPI8501 MEMBRO OU AWS .... AWS
SYSTEM ACRONYM ... AVP COST UNIT . 28806
REPROCESABLE ...... Y (N/S) EXECUTION CLASS .. X
MSGCLASS ........... X TEMPO DE CPU ..... 10S
UNIT. 3420/3480 .... 01 SCRATCH TAPE .... 00
DESTINATION SYSOUT ..... TOTAL LINES .. 9999
EXECUTION TYPE ...... NORMAL RESTART ..........
EXECUTION SYSTEM..... 1 1=RIO1 2=RIO2 3=ACTE
[Link]
OPTION ===>
7
ROSCOE - Commands
Add the parameter GROUP = GAVP in the JOB statement definition line
BIND PLAN(AVP9500) -
PKLIST(AVP0000.*, VAGEN.*) -
ACT(REP) ISO(CS) RETAIN -
RELEASE (COMMIT) VALIDATE (BIND)
IP MAINFRAME:[Link]/ S00MFP02
[Link]
Compiling a COBOL program in ROSCOE involves several steps: initiate the command with 'CMV2BL49' for COBOL programs accessing DB2, ensuring BIND operation integration to handle SQL queries. Implement necessary compilation parameters such as 'CBL TRUNC(BIN), TEST(NONE)' before the 'IDENTIFICATION DIVISION' to ensure proper data handling and debugging mode support. Post-compilation, execute 'BIND PLAN(NAME), PKLIST(LIST)' to securely validate and prepare the program for DB2 execution .
To compile programs that utilize CICs in ROSCOE, designate them with 'CMV2CL49' for those accessing DB2 and 'CMVNCL49' for standalone programs. Ensure proper setting of cobol compilation parameters like 'CBL TRUNC(BIN), TEST(NONE)' for field handling and debugging. When accessing DB2, don't forget to create a BIND statement such as 'BIND PLAN()' to align with database interactions, maintaining consistency and reliability .
To execute FTP from a High to Low Data Set and from a Low to High Data Set in the ROSCOE environment, use the auxiliary jobs FTPAB and FTPBA respectively. FTPAB executes the FTP job transferring data from a higher tier to a lower tier Data Set, while FTPBA performs the inverse operation. This involves setting up the appropriate GUI inputs, validation, and adhering to specified command structures such as PGM=SULCOPY for job submissions .
Reallocating a Data Set in ROSCOE is done using the 'AL' command to allocate a Data Set, requiring specification of parameters such as 'Units Primary=1000 / Secondary=10 / LRECL=' for record length control. These settings dictate how much space the Data Set occupies initially (Primary) and any additional space (Secondary) needed as operations necessitate expansion .
When dealing with files exceeding 30,000 lines in ROSCOE, use the command 'CJ 1 30000 R' to bring lines 1 to 30,000 into view. For additional lines, execute 'CJ 30001 ,, R' to access lines from 30,001 to the file's end. Each block of data should be saved using 'EXP DSN={Data Set Name} DISP=MOD' to ensure the content is stored without loss or duplication, appending subsequent lines as needed .
To change text mode from lower case to upper case in AWS within ROSCOE, the command 'SET MODE B' is used for upper case, and 'SET MODE X' for lower case. This affects how text is displayed and edited, as all text will appear in the specified case, impacting readability and format adherence during code reviews and editing sessions .
To replace a string in ROSCOE across multiple lines, use the 'EDIT s e /string1/string2/ p q' command. Here, 's' and 'e' define the starting and ending columns; 'string1' is the target string to replace, while 'string2' is the new string. 'p' and 'q' specify the starting and ending lines in which the replacement will occur, enabling precise control of text editing within the document .
To recover a removed Data Set from disk in ROSCOE, invoke the macro 'P00.RECARQ' and enter the name of the Data Set. This process generates a job that restores the Data Set, ensuring data integrity and continuity in operational workflows. This method is crucial for managing accidental deletions or system errors in a large-scale data environment .
A user can delete the execution spool of a job in ROSCOE by using the 'D J N' command, which deletes execution logs. It is vital to avoid using 'D J' as it is set to delete and print, which might inadvertently remove necessary job outputs required for auditing or future reference. Understanding these commands helps in judiciously managing job spools without unintended data loss .
To create a query in ROSCOE for production, first list available Dsntep2 options and choose one that meets the criteria. Then, write the query in the editor selecting 'Dsntep2 n', where n is the selected option number. This action will trigger a job with 'OREX', requiring you to set the CPU time and number of pages parameters for effective processing and execution .