Reading a VSAM file


 
Thread Tools Search this Thread
Top Forums Programming Reading a VSAM file
# 1  
Old 12-03-2008
Reading a VSAM file

hi i have a vsam file i want to read the records in that file using C++ code, i use fopen and fread but it is throwing error. if any one worked on it plz tell me how to open that file using c++ code.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

ksh Script, Reading A File, Grepping A File Contents In Another File

So I'm stumped. First... APOLOGIES... my work is offline in an office that has zero internet connectivity, as required by our client. If need be, I could print out my script attempts and retype them here. But on the off chance... here goes. I have a text file (file_source) of terms, each line... (3 Replies)
Discussion started by: Brusimm
3 Replies

2. UNIX for Dummies Questions & Answers

Reading Xml file and print the values into the text file in columnwise?

hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file <sequence> <Filename>aldorzum.doc</Filename> <DivisionCode>US</DivisionCode> <ContentType>Template</ContentType> <ProductCode>VIMZIM</ProductCode> </sequence>... (4 Replies)
Discussion started by: sravanreddy
4 Replies

3. UNIX for Dummies Questions & Answers

Reading XML file and print the values in the text file using Linux shell script

hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file <sequence> <Filename>aldorzum.doc</Filename> <DivisionCode>US</DivisionCode> <ContentType>Template</ContentType> <ProductCode>VIMZIM</ProductCode> </sequence>... (1 Reply)
Discussion started by: sravanreddy
1 Replies

4. Shell Programming and Scripting

Reading UNIX commands from file and redirecting output to a file

Hi All I have written the following script: #!/bin/ksh while read cmdline do echo `$cmdline` pid="$cmdline" done<commands.txt =========== commands.txt contains: ps -ef | grep abc | grep xyz |awk '{print $2}; My objective is to store the o/p of the command in a variable and do... (8 Replies)
Discussion started by: rahulparo
8 Replies

5. Shell Programming and Scripting

Searching for Log / Bad file and Reading and writing to a flat file

Need to develop a unix shell script for the below requirement and I need your assistance: 1) search for file.log and file.bad file in a directory and read them 2) pull out "Load_Start_Time", "Data_File_Name", "Error_Type" from log file 4) concatinate each row from bad file as... (3 Replies)
Discussion started by: mlpathir
3 Replies

6. UNIX for Advanced & Expert Users

Reading a file and sending mail based on content of the file

Hi Gurus, I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file. eg. if file a.txt exists then send a mail to a@a.com simillary for b.txt,c.txt etc. Thanks for your help, Nimu (6 Replies)
Discussion started by: nimu1979
6 Replies

7. AIX

VSAM Utility

Hi, I am looking for a tool or utility to browse/edit VSAM files in Unix on AIX box. Looking for something similar to FileAid or FIleManager we use on MVS. If you have anything in your knowledge then please share with me. Thanks, Satish (2 Replies)
Discussion started by: satishkhatri
2 Replies

8. Shell Programming and Scripting

Reading file names from a file and executing the relative file from shell script

Hi How can i dynamically read files names from a list file and execute them from a single shell script. Please help its urgent Thanks in Advance (4 Replies)
Discussion started by: anushilrai
4 Replies
Login or Register to Ask a Question
DEPMOD(8)						       Linux Module Support							 DEPMOD(8)

NAME
depmod - handle dependency descriptions for loadable kernel modules SYNOPSIS
depmod [-aA] [-ehnqrsuvV] [-C configfile] [-F kernelsyms] [-b basedirectory] [forced_version] depmod [-enqrsuv] [-F kernelsyms] module1.o module2.o ... DESCRIPTION
The depmod and modprobe utilities are intended to make a Linux modular kernel manageable for all users, administrators and distribution maintainers. Depmod creates a "Makefile"-like dependency file, based on the symbols it finds in the set of modules mentioned on the command line or from the directories specified in the configuration file. This dependency file is later used by modprobe to automatically load the correct mod- ule or stack of modules. The normal use of depmod is to include the line /sbin/depmod -a somewhere in the rc-files in /etc/rc.d, so that the correct module dependencies will be available immediately after booting the system. Note that the option -a is now optional. For boot-up purposes, the option -q might be more appropriate since that makes depmod silent about unresolved symbols. It is also possible to create the dependency file immediately after compiling a new kernel. If you do "depmod -a 2.2.99" when you have compiled kernel 2.2.99 and its modules the first time, while still running e.g. 2.2.98, the file will be created in the correct place. In this case however, the dependencies on the kernel will not be guaranteed to be correct. See the options -F, -C and -b above for more information on handling this. While building the relationship between modules and the symbols exported by other modules, depmod does not consider the GPL status of the modules nor of the exported symbols. That is, depmod will not flag an error if a module without a GPL compatible license refers to a GPL only symbol (EXPORT_SYMBOL_GPL in the kernel). However insmod will refuse to resolve GPL only symbols for non-GPL modules so the actual load will fail. OPTIONS
-a, --all Search for modules in all directories specified in the (optional) configuration file /etc/modules.conf. -A, --quick Compare file timestamps and, if necessary, act like depmod -a. This option only updates the dependency file if anything has changed. -e, --errsyms Show all the unresolved symbols for each module. -h, --help Display a summary of options and immediately exit. -n, --show Write the dependency file on stdout instead of in the /lib/modules tree. -q, --quiet Tell depmod to keep quiet and not to complain about missing symbols. -r, --root Some users compile modules under a non-root userid then install the modules as root. This process can leave the modules owned by the non-root userid, even though the modules directory is owned by root. If the non-root userid is compromised, an intruder can overwrite existing modules owned by that userid and use this exposure to bootstrap up to root access. By default, modutils will reject attempts to use a module that is not owned by root. Specifying -r will suppress the error and allow root to load modules that are not owned by root. Use of -r is a major security exposure and is not recommended. -s, --syslog Write all error messages via the syslog daemon instead of stderr. -u, --unresolved-error depmod 2.4 does not set a return code when there are any unresolved symbols. The next major release of modutils (2.5) will set a return code for unresolved symbols. Some distributions want a non-zero return code in modutils 2.4 but that change might cause problems for users who expect the old behaviour. If you want a non-zero return code in depmod 2.4, specify -u. depmod 2.5 will silently ignore the -u flag and will always give a non-zero return code for unresolved symbols. -v, --verbose Show the name of each module as it is being processed. -V, --version Display the version of depmod. The following options are useful for people managing distributions: -b basedirectory, --basedir basedirectory If the directory tree /lib/modules containing the sub-trees of modules is moved somewhere else in order to handle modules for a dif- ferent environment, the -b option tells depmod where to find the moved image of the /lib/modules tree. The file references in the depmod output file that is built, modules.dep, will not contain the basedirectory path. This means that when the file tree is moved back from basedirectory/lib/modules into /lib/modules in the final distribution, all references will be correct. -C configfile, --config configfile Use the file configfile instead of /etc/modules.conf. The environment variable MODULECONF can also be used to select a different configuration file from the default /etc/modules.conf (or /etc/conf.modules (deprecated)). When environment variable UNAME_MACHINE is set, modutils will use its value instead of the machine field from the uname() syscall. This is mainly of use when you are compiling 64 bit modules in 32 bit user space or vice versa, set UNAME_MACHINE to the type of the modules being built. Cur- rent modutils does not support full cross build mode for modules, it is limited to choosing between 32 and 64 bit versions of the host architecture. -F kernelsyms,--filesyms kernelsyms When building dependency files for a different kernel than the currently running kernel, it is important that depmod uses the cor- rect set of kernel symbols to resolve the kernel references in each module. These symbols can either be a copy of System.map from the other kernel, or a copy of the output from /proc/ksyms. If your kernel uses versioned symbols, it is best to use a copy of the /proc/ksyms output, since that file contains the symbol versions of the kernel symbols. However you can use a System.map even with versioned symbols. CONFIGURATION
The behavior of depmod and modprobe can be adjusted by the (optional) configuration file /etc/modules.conf. See modprobe(8) and modules.conf(5) for a complete description. STRATEGY
Each time you compile a new kernel, the command "make modules_install" will create a new directory, but won't change the default. When you get a module unrelated to the kernel distribution you should place it in one of the version-independent directories under /lib/modules. This is the default strategy, which can be overridden in /etc/modules.conf. FILES
/etc/modules.conf (alternatively but deprecated /etc/conf.modules) /lib/modules/*/modules.dep, /lib/modules/* SEE ALSO
modules.conf(5), modprobe(8), modinfo(8), lsmod(8), ksyms(8) BUGS
depmod [ -V | --version ] should exit immediately. Instead, it prints the version information and behaves as if no options were given. AUTHORS
Jacques Gelinas (jack@solucorp.qc.ca) Bjorn Ekwall (bj0rn@blox.se) Linux January 26, 2002 DEPMOD(8)