Information Systems:CROSSREF - ASW Program/File Cross-reference
Cross Reference
On a command line in ASW, key in GO CROSSREF and press enter.
*PL/480B* Cross-reference Tasks 3/26/15 11:06:46 CROSSREF Select one of the following: Application SoftWare Release: XX1:480 1. Create program structure file 2. Enquire on program structure 3. Work with file descriptions 4. Work with file exceptions 5. Work with program descriptions 6. Work with used files in programs 7. Work with calls from programs 9. Work with Black Box Programs 10. Enquire on Black Box Programs Selection or command (C) IBS 1989-2002 ===> ___________________________________________________________ ________________________________________________________________ F3=Exit F4=Prompt F9=Retrieve F12=Cancel
Select option 2 Enquire on Program Structure.
By Program
Because ASW pre-opens files, you cannot use ‘Work With Job / Display Open Files’ to see which files a program uses. But you can use the cross reference. Look in the upper right hand corner of the screen to get the name of the program.
*PL/480B* Resource allocation table maintenance 3/26/15 10:54:29 RFHD0271 ------------------------------------------------------------------------------- Whs Resource Handler Description Act user MAI 99 THIDAN THIDAN AD Thida Naw THIDAN MAI 99 THIRUA THIRUA AD Thiru Aru THIRUA MAI 99 THOMASB THOMASB AD Thomas Bousquet THOMASB MAI 99 THOMASC THOMASC AD Thomas Chung THOMASC
In this case, RFHD0271 is the name of the screen; not the program. The program is RFHR027. Key it in the program field – ‘Pgm’.
*PL/480B* Program structure enquiry 3/26/15 11:08:02 ASGD0211 ------------------------------------------------------------------------------- 2=Edit 5=Display 6=Print 14=Compile __ Used files in pgm RFHR027 Resource allocation table maintenance ------------------------------------------------------------------------------- Pgm File Type Usage Description __ RFHR027 RFBCTLRS LF IO Resource allocation table __ RFHR027 RFBCTLRZ LF IO Resource and zone restrictions table __ RFHR027 SRBCTLSD LF I Signature table __ RFHR027 SRBCTLSS LF I Warehouse table __ RFHR027 URBCTLRB LF IU RF resource - batch rule allocation __ RFHR027 WHBLCD LF I Location description __ RFHR027 WHBLCS LF I Location size table __ RFHR027 WHBLOC LF I Location definition __ RFHR027 WHBZON LF I Warehouse Zone table ------------------------------------------------------------------------------- From pgm To pgm E/I Pgm File Format (PF) __________ __________ _ RFHR027 __________ __________ Search argument _____________________________ F8=Fold F9=Print list
You can tell from the program name at the top, ‘Resource allocation table maintenance’, that you are looking at the correct program. Going by the file descriptions, RFBCTLRS is the one we want. Look at it with Query to be sure.
By File
If you want to find out where a file is used, key it in the file field.
*PL/480B* Program structure enquiry 3/26/15 11:31:31 ASGD0211 ------------------------------------------------------------------------------- 2=Edit 5=Display 6=Print 14=Compile __ File RFBCTLRS where used Resource allocation table ------------------------------------------------------------------------------- File C/S Usage Pgm Type Description __ RFBCTLRS IO RFHR027 RPGLE Resource allocation table maintenance __ RFBCTLRS I RFHR127 RPGLE Resource allocation table enquiry __ RFBCTLRS I RFHR227 RPGLE Resource allocation table printout __ RFBCTLRS I RFHR501 RPGLE Work with R/F instructions sel. batch __ RFBCTLRS I RFHR512 RPGLE Work with R/F instructions sel. shipm __ RFBCTLRS I RFHR522 RPGLE Work with R/F instructions sel. movem __ RFBCTLRS IO RFHR800 RPGLE Allocate R/F resource __ RFBCTLRS IU USRR501 RPGLE R/F batch deallocation screen __ RFBCTLRS I USRR523 RPGLE Work with R/F instructions sel. kitti ------------------------------------------------------------------------------- From pgm To pgm E/I Pgm File Format (PF) __________ __________ _ RFBCTLRS __________ __________ Search argument _______________________________ F8=Fold F9=Print list
This shows which programs use the file, and how they are used.
I – input O – output, or add U – update
Note that these are program that use this particular logical file (B in the third position). To see all programs that use the file, you will have to repeat this for the physical file, and all other logicals.
To find the names of all the logical files, key in DSPDBR RFOCTLRS and press enter. By changing the third letter to O, we have the name of the physical file.
For an explanation of physical and logical files, click here.