home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / emulate / systems / pc370 / doc / help.doc next >
Text File  |  1988-01-06  |  10KB  |  183 lines

  1.  
  2. PC/370 help documentation
  3.  
  4. So you've successfully installed PC/370 using the BAT\INSTALL.BAT
  5. command, have run the demo programs, and have read the documentation
  6. files, but you still have some questions.  Well, here are some of the
  7. most frequently asked questions and some answers which may help:
  8.  
  9.   1.  Where can I get more help?
  10.  
  11.       Send letter and/or diskette with problem to me at the address
  12.       listed below and I will reply.  Subscribe to Compu-Serve
  13.       electronic mail survice adn send me EASY mail message
  14.       using ID# 73047,1113.
  15.  
  16.   2.  The A370.EXE cross assembler gets I/O error reading my source
  17.       ALC program file?
  18.  
  19.       The file must be in ASCII text form with line feed (X'0A')
  20.       character ending each line of text.  This is standard PC format
  21.       used by most text editors including EDLIN and SEE.  If the ALC
  22.       file was downloaded from an IBM mainframe, it may need to be
  23.       translated from EBCDIC to ASCII.  Most mainframe to PC link
  24.       facilities have this translation option as a default.
  25.  
  26.   3.  The A370.EXE cross assembler did not recognize some statements?
  27.  
  28.       See USER.DOC for OS/VS assembler features not supported by
  29.       A370.EXE such as macros, and see the reference section for
  30.       additional texts on OS/VS assembler and ASSIST.  If the program
  31.       has macros, you must use the M370.COM macro preprocessor to
  32.       expand macros into basic assembler first.  If the program has
  33.       floating point E, D, or L type DC constants, an 80x87 math co-
  34.       processor must be installed for the assembler to correctly
  35.       assemble the floating point constants.
  36.  
  37.   4.  The L370.EXE linkage editor keeps getting unresolved external
  38.       references even though I've checked that all subroutines have
  39.       been added to system or program LIB file with correct /B option
  40.       of MS-DOS copy command as shown in BAT\BLDLIB.BAT?
  41.  
  42.       The linkage editor scans the program LIB file first and then the
  43.       system LIB file in sequential order attempting to resolve all
  44.       external references in one pass.  If any module selected for
  45.       inclusion calls a module previously scanned and not selected,
  46.       then the link will fail as a result of the backward reference.
  47.       You must sequence the libraries to eliminate backward references
  48.       or force loading of required modules with explicit external
  49.       address constants.  To allow unresolved references use option U.
  50.  
  51.   5.  My first program will not run.  How do I debug it?
  52.  
  53.       Specify an upper case T as only parameter when executing program
  54.       to start in debug mode or link it with option D specified.  At
  55.       the interactive debug prompt, type T to trace instructions up to
  56.       point of failure.  You can stop trace at any point by hitting
  57.       any key and then typing T again to restart.  If no entry point
  58.       name was specified on END statement, the program will start at
  59.       first byte of code.  If there are too many instructions before
  60.       failure to trace, enter Q for quiet mode execution up to point
  61.       of failure and then enter N for list of last 20 instructions
  62.       executed.  See debug chapter of USER.DOC for more information.
  63.  
  64.   6.  My write to operator message printed garbage after message?.
  65.  
  66.       Add $ character to tell MS-DOS where end of text is.
  67.  
  68.   7.  My first file I/O operation caused an I/O error?
  69.  
  70.       Make sure that file is in current directory or that complete
  71.       MS-DOS file path was specified in DCBDSN field of DCB with a
  72.       trailing null character (X'00').  Make sure that record length
  73.       (LRECL) includes room for carriage return and line feed
  74.       characters in each text record.  Text record processing on the
  75.       PC is quite different from the normal fixed length text record
  76.       processing on an IBM mainframe.  Text records on the PC created
  77.       by the SEE.COM full screen editor or most other PC editors such
  78.       as EDLIN store text records in variable length ASCII form with a
  79.       carriage return (X'0D') and line feed (X'0A') character
  80.       indicating the end of each record and an end of file (X'1F')
  81.       character after the last line feed.  If the file being read or
  82.       written has 80 data characters, then the record length needs to
  83.       be 82 bytes for text type files.  See SYSTEM.DOC for more
  84.       information on file DCB options including translation between
  85.       EBCDIC and ASCII.  The ASSIST extended instructions XREAD and
  86.       XPRNT make the translation between ASCII text file format and
  87.       EBCDIC fixed length record format automatically.  See the ASSIST
  88.       demo programs DEMOAST1.ALC through DEMOAST4.ALC and the ASSIST
  89.       section of USER.DOC for more information.
  90.  
  91.   8.  The records read from my input file appear to be in ASCII
  92.       instead of EBCDIC as expected by the 370 program?
  93.  
  94.       The default for DCB text file processing is not to translate
  95.       between ASCII and EBCDIC.  There is an option bit in the DCBFLG
  96.       byte named DBTRAN which can be set prior to open to request that
  97.       each record be translated such that file is in ASCII and record
  98.       processed by program is in EBCDIC.  The ASSIST extended
  99.       instructions XREAD and XPRNT automatically make this
  100.       translation.
  101.  
  102.   9.  Why don't you have an option to let all character strings
  103.       default to ASCII instead of EBCDIC code in an assembler program?
  104.  
  105.       Release 1 did have option E to specify either ASCII or EBCDIC
  106.       for DC character strings and self defining character strings
  107.       such as immediate data in CLI instruction.   This created non-
  108.       standard 370 code by default when the ASCII mode was selected
  109.       and was very confusing when mixing subprograms with different
  110.       options.  Release 2 removed the E option and added option to
  111.       define ASCII character strings using double quotes.   This
  112.       solution also allows both types of character strings to be
  113.       easily used in a single program.
  114.  
  115.  10.  Can I download and use the MVS, VM, or VSE macro's?
  116.  
  117.       No.  First they are copyright by IBM and licensed only on the
  118.       mainframe they reside on.  Second, they would not work without
  119.       changing them to use PC/370 supervisor calls and the limited
  120.       syntax of the macro pre-processor.  The common MVS macros
  121.       included such as DCB, OPEN, CLOSE, GET, and PUT have been coded
  122.       from scratch for the PC environment.  Several different users
  123.       are developing additional macros to provide compatible unit test
  124.       environments for each of the above operating systems.
  125.  
  126.  11.  Can I download load modules from an IBM mainframe and run
  127.       them using PC/370?
  128.  
  129.       Yes, but only if you also complete a PC/370 shell such as the
  130.       MVS demo shell to intercept all SVC's and supervisor state
  131.       instructions used.  The demo shell will support a native 370
  132.       mainframe MVS load module that only uses problem state
  133.       instructions and the WTO and WTOR svc's.  The actual load module
  134.       file would have to be processed to remove all the extraneous
  135.       fetch control records leaving just the 370 object code in a MOD
  136.       type file which could be loaded and executed by the shell
  137.       program.  The object code would have to be self relocating (i.e.
  138.       no relocation records in the load module file).
  139.  
  140.  12.  Can I download fixed blocked files and read them directly with a
  141.       PC/370 program?
  142.  
  143.       Yes, one of the DCB file processing options is fixed blocked.
  144.       This mode assumes that the file contains fixed length binary
  145.       and/or EBCDIC data records with no carriage returns or line
  146.       feeds.  Text files are not normally stored in this format on
  147.       PC's because it wastes so much space compared to the variable
  148.       length ASCII text format.
  149.  
  150.  13.  Can I upload source, object, or load modules to the mainframe
  151.       and execute them?
  152.  
  153.       Yes, with the following restrictions:
  154.  
  155.         a. Source code must be translated back to EBCDIC and any SVC's
  156.            or macros used must be compatible with the mainframe
  157.            operating system and macro assembler.
  158.  
  159.         b. Object code can be uploaded after it is converted from
  160.            compressed bit stream format (OBJ) to OS/VS linkage editor
  161.            80 byte fixed blocked format (370) using the utility
  162.            T370.COM which is included in both object and source form.
  163.            This is being used by some software developers who unit
  164.            test code on a PC and then upload tested object code to
  165.            mainframe.
  166.  
  167.         c. Load module code can be uploaded but with the following
  168.            restrictions.  Only MOD format code would make sense to
  169.            upload since the loader code in COM format files is unique
  170.            to PC MS-DOS environments.  An application interface on
  171.            the mainframe would have to be written to read the MOD
  172.            file code into memory and link to it.  Of course, the
  173.            supervisor instructions would have to be compatible with
  174.            the mainframe operating environment.
  175.  
  176. Please send additional questions and answers you think would be
  177. helpful to other users.  I will add them with appropriate credits.
  178. This file was first added in release 4.2 at the suggestion of BIll
  179. Earle.
  180.  
  181. Don Higgins
  182. 6365 - 32 Avenue North
  183. St. Petersburg, Florida 33710