File Versions (GDG)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers File Versions (GDG)
# 1  
Old 07-27-2005
File Versions (GDG)

Hi There,

This is more a question for the 'mainframers' of old.

I need a control structure (AIX) very similar to "GDG" files (Generation data group) as found on OS/390 to control versions of files.

Specific files have specific needs, some need to be kept for 5 versions, some for 30 and some for 100.

When you add a new file, then the oldest version of the file must automatically be deleted (continuously rolling over).

Any ideas how it can be done??

Tks

Bizcut
This User Gave Thanks to Bizcut For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Merge different versions of file in UNIX

Hello Experts, I want to merge my local file (File1) with the changes in remote server (File1). For Example: File1 contents are... (file @ remote server) ABC <blankLine> GHI <EOF> I, as USER#1, have updated the contents of File1 in my local as... ABC DEFGhi <blankLine> JKL... (2 Replies)
Discussion started by: AjMyTechGroup
2 Replies

2. Shell Programming and Scripting

Remove file versions

Hi All, I have a difficult problem (at least for me) and need your help. Situation is like this, there are a lot of files in a lot of folders and some of them files are just versions of the same file saved by careful users . Once every few months I have to clean up and keep the last version of... (2 Replies)
Discussion started by: mihaicris
2 Replies

3. Shell Programming and Scripting

Script to maintain file versions

I am developing a script to maintain 'n' number of versions of a file. The script will take a filename as a parameter and the number of versions to maintain. This basically does something like a FIFO. Here is what I developed. But something is not right. I have attached the script. Can u pls help... (2 Replies)
Discussion started by: vskr72
2 Replies

4. Shell Programming and Scripting

SSH command for new GDG genration

Hi, I am trying to SSH to a GDG file from UNIX to Mainframe and it is not transferring it and giving error. I gave the following command and as can be seen I am using the relative number i.e +1 here: ssh -v username@remote.host "mv -P RECFM=FB,LRECL=150 /homedir/username/test.dat... (0 Replies)
Discussion started by: pravle
0 Replies

5. UNIX for Dummies Questions & Answers

To check if the latest version of given GDG base has data

Hi All , I am trying to run a shell script through a JCL . The requirement is I have a gdg base name and I need to create a script that will just check if the latest version of that gdg has data or not . If it doesnt have data RC 4 need to be returned . One more thing which is bothering me is i... (1 Reply)
Discussion started by: mavesum
1 Replies

6. Shell Programming and Scripting

To check if the latest version of given GDG base has data

Hi All , I am trying to run a shell script through a JCL . The requirement is I have a gdg base name and I need to create a script that will just check if the latest version of that gdg has data or not . If it doesnt have data RC 4 need to be returned . One more thing which is bothering me is i... (3 Replies)
Discussion started by: mavesum
3 Replies

7. UNIX for Dummies Questions & Answers

Script for FTPing files to mainframe GDG

Hi, Request Unix gurus to kindly share a script which FTPs multiple files from Unix to a Mainframe GDG. The script should check for oldest file named as 'abc*.txt' in a directory '/dir/child'. FTP that file to MF, then remove the file from unix and then look for the next oldest file to be... (1 Reply)
Discussion started by: dsrookie
1 Replies

8. UNIX for Dummies Questions & Answers

GDG in AIX?

Does anyone know how to emulate Mainframe's GDG (Generation Data Group) in AIX? (0 Replies)
Discussion started by: vidhya
0 Replies

9. AIX

GDG's on AIX

Hi, Does anyone have a solution they can share that will emulate Mainframe Generation Data Groups (GDG) on AIX? Thank You in Advance for Your Help, Lou (0 Replies)
Discussion started by: LouPelagalli
0 Replies

10. Shell Programming and Scripting

different versions of the same file.

How can I find out in UNIX the number of superusers logged in at a system at a given time??? (2 Replies)
Discussion started by: deeptia
2 Replies
Login or Register to Ask a Question
SYSTEMD-CGTOP(1)						   systemd-cgtop						  SYSTEMD-CGTOP(1)

NAME
systemd-cgtop - Show top control groups by their resource usage SYNOPSIS
systemd-cgtop [OPTIONS...] DESCRIPTION
systemd-cgtop shows the top control groups of the local Linux control group hierarchy, ordered by their CPU, memory, or disk I/O load. The display is refreshed in regular intervals (by default every 1s), similar in style to top(1). If systemd-cgtop is not connected to a tty, only one iteration is performed and no columns headers are printed. This mode is suitable for scripting. Resource usage is only accounted for control groups in the relevant hierarchy, i.e. CPU usage is only accounted for control groups in the "cpuacct" hierarchy, memory usage only for those in "memory" and disk I/O usage for those in "blkio". If resource monitoring for these resources is required, it is recommended to add the CPUAccounting=1, MemoryAccounting=1 and BlockIOAccounting=1 settings in the unit files in question (See systemd.resource-control(5) for details). To emphasize this: unless "CPUAccounting=1", "MemoryAccounting=1" and "BlockIOAccounting=1" are enabled for the services in question no resource accounting will be available for system services and the data shown by systemd-cgtop will be incomplete. OPTIONS
The following options are understood: -h, --help Prints a short help text and exits. --version Prints a version string and exits. -p Order by control group path name. -t Order by number of tasks in control group (i.e. threads and processes). -c Order by CPU load. -m Order by memory usage. -i Order by disk I/O load. -b, --batch Run in "batch" mode: do not accept input and run until the iteration limit set with --iterations is exhausted or until killed. This mode could be useful for sending output from systemd-cgtop to other programs or to a file. -n, --iterations= Perform only this many iterations. -d, --delay= Specify refresh delay in seconds (or if one of "ms", "us", "min" is specified as unit in this time unit). --depth= Maximum control group tree traversal depth. Specifies how deep systemd-cgtop shall traverse the control group hierarchies. If 0 is specified, only the root group is monitored. For 1, only the first level of control groups is monitored, and so on. Defaults to 3. KEYS
systemd-cgtop is an interactive tool and may be controlled via user input using the following keys: h Shows a short help text. SPACE Immediately refresh output. q Terminate the program. p, t, c, m, i Sort the control groups by path, number of tasks, CPU load, memory usage, or IO load, respectively. % Toggle between showing CPU time as time or percentage. +, - Increase or decrease refresh delay, respectively. EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise. SEE ALSO
systemd(1), systemctl(1), systemd-cgls(1), systemd.resource-control(5), top(1) systemd 208 SYSTEMD-CGTOP(1)