Sorry, you do not have permission to ask a question, You must login to ask a question.

Sorry, you do not have permission to ask a question.

brainchime.com

brainchime.com

brainchime.com Navigation

  • Home
  • About Us
  • Contact Us

Mobile menu

Close
  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

brainchime.com Latest Questions

Admin
Admin
Asked: October 13, 20242024-10-13T10:49:36+05:30 2024-10-13T10:49:36+05:30In: IBM i

What is the difference between source physical file and physical file in as400?

What are the main differences between the Source physical file (SRC-PF) and Physical file (PF) in AS400? How they differ in terms of storing data.
Why do we use SRC-PF and PF, and how does their structure differ? Where do I use SRC-PF and where do I use PF in practical scenario?

as400db2
  • 0
  • 0
  • 11
  • 6
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

Related Questions

  • what is level check error and how to resolve level check error?
  • What are AS400 systems. Please provide a introduction of AS400 systems?
  • Is there any online server available for practicing on AS400 system?
  • What are the menus available in AS400?
  • What is subsystem in AS400?
  • How to copy a save file from IFS to a library?
  • How to transfer savf from as400 to pc?
  • How to copy ifs file to another directory?
  • How to copy savf from ifs to pc?
  • How to copy ifs file to physical file?
  • How to copy save file to ifs?
  • How to copy spool file to ifs?
  • How to copy physical file to ifs?
  • How to copy file from pc to IFS?
  • How to download spool file from AS400?
  • How do I delete a library in AS400?
  • How do I copy data from AS400 to excel?
  • What is library in AS400?
  • How to find all the source physical file available in AS400?
  • How to find all libraries in AS400?
  • How to change the library list in AS400?
  • What is access path in AS400?
  • how to find the source file of an object in as400?
  • how to change record length of source physical file in as400?
  • What is cpf4174 error in as400?
  • What is the use of varying keyword in rpgle?
  • What is DDS in AS400?
  • What is the difference between PF and LF in as400?
  • Why do we use CHGPF command in AS400?
  • how to create physical file in as400?
  • What are the data types supported by physical files in AS400?
  • how to add data in physical file in as400?
  • how to view journal entries in as400?
  • what is the use of ovrdbf in as400?
  • What is an array in AS400?
  • what is a data queue in as400 and why do we use data queue?
  • How to run stored procedure in AS400?
  • How to resolve session and device error in AS400?
  • how to check as400 system values?
  • How to check triggers on a file in as400?
  • How to find damaged objects in AS400?
  • what is module in as400?
  • How to create binding directory in as400?
  • how to create ifs folder in as400?
  • What is ASP in AS400?
  • What is JOBQ and how to create a JOBQ in AS400?
  • What is PSDS in AS400?
  • What is SEU in AS400 and why do we use it?
  • What is the multi-format logical file in AS400?
  • what is PR and PI in rpgle?
Leave an answer

Leave an answer
Cancel reply

Browse
Browse

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Admin
    Admin
    2024-10-13T10:54:02+05:30Added an answer on October 13, 2024 at 10:54 am

    Source Physical file:

    The source physical file contains the sources of different source members. This file has a specific structure. CRTSRCPF is the command used to create the source physical file. We can create up to 32767 members in a single source file. The source file is an object, but the source members contained within it are not objects.

    The command used to create the source file is CRTSRCPF FILE(TESTLIB/QDDSSRC) RCDLEN(92)

    RCDLEN parameter in the CRTSRCPF command indicates the record length of the source physical file. Record length refers to the number of bytes in the source physical file’s length of records. The record format of the source physical file consists of three fields.

    1. Source sequence number 
    2. Date
    3. Source statement

    The default record length is 92 bytes. The source sequence number has 6 bytes, Date 6 has bytes, and the source statement has 80 bytes. The important thing about this is that the source sequence number (6 bytes) and the date (6 bytes) have fixed forms, which means that a total of 12 bytes are fixed—the remaining go toward the source statement. For the record’s length, which can reach 32766 bytes. Thus, the permissible values for record length span from 13 to 32766 bytes. The following are the sizes of some of the common source physical files.

    • QRPGSRC, QDDSSRC, QDDLSRC, QCLSRC, QCMDSRC, etc – record length of 92
    • QRGLESRC – a record length of 112 (92 default + 20 bytes of comment)

    The AS400 command line tool WRKMBRPDM is used to view every source member of a source physical file. To add a new source member of any kind to the source physical file, use F6 on WRKMBRPDM.

    Physical file:

    The physical file contains data.
    the command used to create a physical file is CRTPF.

    create a physical file PF1 in library TESTLIB using source member PF1 present in source physical file QDDSSRC in TESTLIB
    CRTPF FILE(TESTLIB/PF1) SRCFILE(TESTLIB/QDDSSRC) SRCMBR(PF1)

    Or create a physical file without a source member and of record length 92.
    CRTPF FILE(TESTLIB/PF1) RCDLEN(92)

    A database file containing data records is referred to as a physical file. After that, the records are organized into physical file members, each of which has a unique access path to the data. The physical files should ideally have a single member by default, inserted immediately upon creation.

    A physical file can have only one record format.

    The physical file has four levels of entries, which are listed below in a certain order:

    1. File Level
    2. Record Format Level
    3. Field Level
    4. Key Field Level

    File-level entries are optional. The keywords used at the file level are listed below:

    • UNIQUE
    • FIFO
    • LIFO
    • FCFO
    • REF

    The record format name is specified along with an optional text description at the record format level. The keywords used at this level are listed below:

    • FORMAT
    • TEXT

    Field name, length, and data type, along with option Text description and Column heading, are specified for each field at the field level. The keywords used at this level are listed below:

    • ALIAS
    • ALWNULL
    • CCSID
    • CHECK
    • CHKMSGID
    • CMP/COMP
    • COLHDG
    • DATFMT
    • DATSEP
    • DFT
    • EDTCDE
    • EDTWRD
    • REFFLD
    • REFSHIFT
    • TEXT
    • TIMFMT
    • TIMSEP
    • VALUES
    • VARLEN

    Key field names are listed at key field level entries. Keywords used at this level are listed below:

    • ABSVAL
    • DESCEND
    • DIGIT
    • NOALTSEQ
    • SIGNED
    • UNSIGNED
    • ZONE
      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp

Sidebar

Statistics

  • Questions 143
  • Answers 177
  • Comments 0
  • Popular
  • Answers
  • Admin

    Why do we use OVERLAY keyword in data structure subfields ...

    • 12 Answers
  • Admin

    How to call sql stored procedure with output parameter from ...

    • 6 Answers
  • Admin

    How to use declare global temporary table statement in RPGLE?

    • 5 Answers
  • Admin
    Admin added an answer CPF4131 is a record format level check error. This indicates… October 18, 2024 at 1:58 am
  • Admin
    Admin added an answer To open the command prompt with administrator rights you can… October 17, 2024 at 12:27 am
  • Admin
    Admin added an answer In AS400, "AS" stands for Application system. This article discusses… October 13, 2024 at 12:49 pm

Related Questions

  • Admin

    what is level check error and how to resolve level ...

    • 1 Answer
  • Admin

    What are AS400 systems. Please provide a introduction of AS400 ...

    • 1 Answer
  • Admin

    Is there any online server available for practicing on AS400 ...

    • 1 Answer
  • Admin

    What are the menus available in AS400?

    • 1 Answer
  • Admin

    What is subsystem in AS400?

    • 1 Answer

Trending Tags

.htaccess (1) as400 (123) bing-webmaster (2) control-language (12) db2 (33) ftp (8) google-adsense (1) google-search-console (3) https-redirect (1) iasp (4) ifs (22) jar (4) operations (3) php-my-admin (1) qshell (3) robots.txt (4) rpg (26) stored-procedure (3) stroed procedure (1) triggers (1) yoast (4)

Explore

  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

Footer

BrainChime

BrainChime is a blog that posts question-and-answer-based format articles on diverse topics and engages in discussions by allowing people to provide answers/comments without the need to register and log in.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • FAQs
  • Categories
  • Tags

© 2024 BrainChime. All Rights Reserved
by BrainChime.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.