extract_gal_fmt: Extract GAL Export Format

Description Usage Arguments Details Value Examples

View source: R/extract_fmt.R

Description

Extraction of format specification of exported GAL data based on SQL export routine. This function is a wrapper which uses the generic export function extract_generic_fmt.

Usage

1
2
3
4
5
extract_gal_fmt(
  ps_sql_prg_path,
  ps_sql_exp_routine = "ExportGAL",
  ps_exp_pattern = "PA_EXP.sFormat"
)

Arguments

ps_sql_prg_path

path to sql program

ps_sql_exp_routine

name of export routine

ps_exp_pattern

pattern to search for export commands

Details

Usefulness of this function depends on the format of the SQL export routine. If that format changes, the result might be completely unusable. This function should only be used once to extract the format. Any updates should be done on already existing fmt-input files.

Value

tbl_gal_fmt tibble with the column headers and the column width

Examples

1
2
3
4
5
## Not run: 
s_sql_prg_path <- system.file("extdata", "zws_gal_pgb.sql", package = "qfmtchk")
tbl_gal_fmt <- extract_gal_fmt(ps_sql_prg_path = s_sql_prg_path)

## End(Not run)

fbzwsqualitasag/qfmtchk documentation built on Dec. 20, 2021, 7:46 a.m.