03-14-2013
Sorry my bad.
Its S9(4) comp and S9(4) comp-3
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all,
I've a flat file in this format:
=
"
Record 1
Field1 -> XXXX
Field2 -> 9558
Field3 -> 55AA
Record 2
Field1 -> YYYY
Field2 -> 12345
Field3 -> aa23
"
And i want to convert it to (4 Replies)
Discussion started by: Loobian
4 Replies
2. Shell Programming and Scripting
Hi I m an absolute dummy on UNIX, I m basically a SAP guy. but I require a file which is stored on the mainframe to be moved to Unix application server. I got the following script to do it from someone
#! /usr/local/bin/move_prom
REMOTE_HOST=158.52.246.30 # Hostname of the remote Mainframe... (2 Replies)
Discussion started by: satyaj_99
2 Replies
3. Shell Programming and Scripting
Hi,
I have received a mainframe file ( VSAM file ) . I would like to handle that file in Unix. i.e I would like to take the last record of the file. I have given wc -l <file_name> , it gives 0 lines. Even though It has some lines , it is not giving count exactly. When I gave file <file_name>... (1 Reply)
Discussion started by: thambi
1 Replies
4. Programming
Before i start doing something, I wanted to know whether the approach to compare XML file with UNIX file system structure. I have a pre-configured file(contains a list of paths to executables) and i need to check against the UNIX directory structure. what are the various approches should i use ? I... (6 Replies)
Discussion started by: shafi2all
6 Replies
5. Shell Programming and Scripting
Hi Guy's can someone help me in converting the following
I have a flat text file which has several thousand lines which I need to convert to a csv it's got a consistent format but basically want every time it hit's txt to create a new line with the subsequent lines comma delimited for example
... (6 Replies)
Discussion started by: p1_ben
6 Replies
6. Shell Programming and Scripting
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
7. UNIX for Dummies Questions & Answers
Hi Everyone,
Do I need to provide record length as Record length + 4 when I'm transferring a variable block files from unix to mainframe through ftp?
For example, I have a file in unix (ebcidic converted) with maximum record length of 100.
This works correctly,
quote... (1 Reply)
Discussion started by: poova
1 Replies
8. Shell Programming and Scripting
In awk how would I flatten input.txt to output.txt?
Input:
givenname: Darth
sn: Vadar
mail: d.vadar@deathstar.com
uid: dv12345
orclguid: 1234567890
givenname: Carlito
sn: Brigante
mail: c.brigante@paradise.com
uid: cb12345
orclguid: 2134567890
Output:
... (3 Replies)
Discussion started by: u20sr
3 Replies
9. Shell Programming and Scripting
Hi All ,
I need a help regarding file ftp ing from mainframe to unix.Our source file is mainframe file.I need to download the mainframe file to local unix server through unix script.If anyone can help me how we can do it through unix script ,it will be really helpful.Thanks. (7 Replies)
Discussion started by: STCET22
7 Replies
10. Shell Programming and Scripting
Hi All,
Please help me to the conversion of Mainframe SAS JCL to korn Unix script. Please share the example from SAS JCL to Korn Unix Script.
It be really helpful. Please share the online source also so I can look into it.
Thanks,
Abhishek (5 Replies)
Discussion started by: Abhishek Tyagi
5 Replies
LEARN ABOUT SUNOS
wsreg_register
wsreg_register(3WSREG) Product Install Registry Library Functions wsreg_register(3WSREG)
NAME
wsreg_register - register a component in the product install registry
SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...]
#include <wsreg.h>
int wsreg_register(Wsreg_component *comp);
DESCRIPTION
The wsreg_register() function updates a component in the product install registry.
If comp is already in the product install registry, the call to wsreg_register() results in the currently registered component being
updated. Otherwise, comp is added to the product install registry.
An instance is assigned to the component upon registration. Subsequent component updates retain the same component instance.
If comp has required components, each required component is updated to reflect the required component relationship.
If comp has child components, each child component that does not already have a parent is updated to reflect specified component as its
parent.
RETURN VALUES
Upon successful completion, a non-zero value is returned. If the component could not be updated in the product install registry, 0 is
returned.
EXAMPLES
Example 1: Create and register a component.
The following example creates and registers a component.
#include <wsreg.h>
int main (int argc, char **argv)
{
char *uuid = "d6cf2869-1dd1-11b2-9fcb-080020b69971";
Wsreg_component *comp = NULL;
/* Initialize the registry */
wsreg_initialize(WSREG_INIT_NORMAL, NULL);
/* Create the component */
comp = wsreg_create_component(uuid);
wsreg_set_unique_name(comp, "wsreg_example_1");
wsreg_set_version(comp, "1.0");
wsreg_add_display_name(comp, "en", "Example 1 component");
wsreg_set_type(comp, WSREG_COMPONENT);
wsreg_set_location(comp, "/usr/local/example1_component");
/* Register the component */
wsreg_register(comp);
wsreg_free_component(comp);
return 0;
}
USAGE
A product's structure can be recorded in the product install registry by registering a component for each element and container in the
product definition. The product and each of its features would be registered in the same way as a package that represents installed files.
Components should be registered only after they are successfully installed. If an entire product is being registered, the product should
be registered after all components and features are installed and registered.
In order to register correctly, the component must be given a uuid, unique name, version, display name, and a location. The location ass-
gined to product structure components should generally be the location in which the user chose to install the product.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO
wsreg_get(3WSREG), wsreg_initialize(3WSREG), wsreg_create_component(3WSREG), wsreg_unregister(3WSREG), attributes(5)
SunOS 5.10 22 Sep 2000 wsreg_register(3WSREG)