Sponsored Content
Top Forums Shell Programming and Scripting Linux Platform - NDM Script - && Operator Post 302772945 by dsfreddie on Wednesday 27th of February 2013 05:20:19 AM
Old 02-27-2013
Linux Platform - NDM Script - && Operator

Hi All,

I have a requirement where i need to NDM 3 files from LINUX to Mainframe system & trigger a job in mainframe once the 3 files are transmitted successfully.

I am getting an error message in the && operator (the code component where i am checking whether step 1/2/3 are completed).

Pls find the code below.

Quote:
STEP1 copy from (file=$FILE_PATH/$FILE1_DS pnode)
ckpt=no
to (file=$FILE1_MF
DCB=(RECFM=FB,LRECL=500,BLKSIZE=0,DSORG=PS)
DISP=(NEW) SPACE=(CYL,(000478,0000250,),RLSE,,) snode)
STEP2 copy from (file=$FILE_PATH/$FILE2_DS pnode)
ckpt=no
to (file=$FILE2_MF
DCB=(RECFM=FB,LRECL=500,BLKSIZE=0,DSORG=PS)
DISP=(NEW) SPACE=(CYL,(000478,0000250,),RLSE,,) snode)
STEP3 copy from (file=$FILE_PATH/$FILE3_DS pnode)
ckpt=no
to (file=$FILE3_MF
DCB=(RECFM=FB,LRECL=100,BLKSIZE=0,DSORG=PS)
DISP=(NEW) SPACE=(CYL,(000500,0000250,),RLSE,,) snode)
TEST if [[ STEP1 -eq 0 && STEP2 -eq 0 && STEP3 -eq 0 ]]; then
STEP4 run task (PGM=U7SVC) sysopts="'CA7=CA72;D=CA7TRIGT.WCCT.$WCC1SDAR.DUPTIN.ART'" snode
Error Message:

Quote:
XPAS001I Return Code: 8 Feedback: 0
Symbolic Not Found at "&&".
XPAS001I Return Code: 8 Feedback: 0
Symbolic Not Found at "&&".
XPAM001I Return Code: 8 Feedback: 0
Errors Parsing
Can somebody help me resolve this issue.

Thanks Much
Freddie
Can
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

what is the difference between Unix & linux, what are the advantages & disadvantages

ehe may i know what are the difference between Unix & Linux, and what are the advantages of having Unix as well as disadvantages of having Unix or if u dun mind i am dumb do pls tell me what are the advantages as well as the disadvantages of having linux as well. thanks (1 Reply)
Discussion started by: cybertechmkteo
1 Replies

2. UNIX Desktop Questions & Answers

ATI && XFree86 (Linux)

Anyone who have any ideas how-to make X faster. I have a ATI Rage Mobility P/M AGP 2x card and I wanto get it fast, mostly for movie playback and so. Is there OpenGL and GLX support? regards Esaia (1 Reply)
Discussion started by: Esaia
1 Replies

3. Shell Programming and Scripting

multiple conditions in if using && operator

VARIABLE="project" if && ] then echo "VARIABLE is not empty" fi this is not working what is wrong in the syntax?? (2 Replies)
Discussion started by: codeman007
2 Replies

4. UNIX for Dummies Questions & Answers

Problem with xterm & tcsh & sourcing a script in a single command

Hi friends, I have a script that sets the env variable path based on different conditions. Now the new path variable setting should not done in the same terminal or same shell. Only a new terminal or new shell should have the new path env variable set. I am able to do this only as follows: >cd... (1 Reply)
Discussion started by: sowmya005
1 Replies

5. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

6. Shell Programming and Scripting

Alternative to && operator

"Both cases have to be true for the expression to evaluate "true". is that not so. the following code does a read from a txt file, an then suppose to do the deletion ,but although the condition exists, its not performing the deletion && echo "\n\t Deleting printer ${prt} !!!" if !... (5 Replies)
Discussion started by: ggoliath
5 Replies

7. Shell Programming and Scripting

How to write If statement using && and operator in Unix

Hi What is the syntax for if statement using && and || operator? if && ] || here its giving me an error to this if statement any suggestion?? (2 Replies)
Discussion started by: Avi
2 Replies

8. UNIX for Dummies Questions & Answers

Magic numbers '&' operator problem

Hello everyone, on the man page of "magic(5)" There is explanation "&, to specify that the value from the file must have set all of the bits that are set in the specified value" . My question is that what is the difference between '&' and equal operator '=' ? I tested it with file... (6 Replies)
Discussion started by: segmentation
6 Replies

9. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies

10. UNIX and Linux Applications

Xalan & Xerces issues for Oracle Linux 6.6 & Solarisstudio12.3 C++ compiler for Linux

Hi Team, I am facing issue while using Xalan & Xerces for my application. Below are my environment details i am using :- Platform:- Oracle Linux 6.6 Compiler :- solarisstudio12.3 C++ compiler for Linux Below are the versions of Xalan & Xerces source code used to build the shared object... (0 Replies)
Discussion started by: agrachirag
0 Replies
FCOEMON(8)							  Open-FCoE Tools							FCOEMON(8)

NAME
fcoemon - Open-FCoE service daemon SYNOPSIS
fcoemon [-f|--foreground] [-l|--legacy] [-d|--debug] [-s|--syslog] fcoemon -h|--help fcoemon -v|--version DESCRIPTION
The fcoemon daemon is the core component of the Open-FCoE management service. The primary function of fcoemon is to control FCoE instances. fcoemon will create, destroy, reset, enable and disable FCoE instances based on system configuration, administrative commands, and runtime events. On startup, fcoemon will create FCoE instances defined by the configuration files (see FILES section below). Since FCoE typically relies on the Data Center Bridging (DCB) capabilities of an Ethernet interface, fcoemon establishes a connection with the LLDP daemon lldpad to query the status of the DCB features on relevant Ethernet interfaces and receive DCB configuration change events. During runtime, fcoemon will monitor network and lldpad events for the relevant Ethernet interfaces and perform appropriate actions (create, destroy, enable, disable) on the FCoE instances. fcoemon also provides a client interface via which the fcoeadm utility is able to issue commands. Installation of the fcoe-utils package will set up an fcoe service which will control the execution of the fcoemon daemon. OPTIONS
-f, --foreground Run fcoemon in the foreground. -d, --debug Enable debugging messages. -l, --legacy Force fcoemon to use the legacy /sys/modlue/libfcoe/parameters/ interface. The default is to use the newer /sys/bus/fcoe/ interfaces if they are available. -s, --syslog Use syslogd for logging. The default behavior is to log to stdout and stderr. -h, --help Show help message with basic usage instructions -v, --version Show the version of the fcoemon command. TERMINOLOGY
DCB Data Center Bridging A set of Ethernet enhancement standards developed by the IEEE 802.1 Working Group. See http://www.ieee802.org/1/pages/dcbridges.html for more information. DCBX DCB Capabilities Exchange Protocol, implemented by the DCB module of lldpad. DCBX exchanges DCB capabilities and configuration with a link partner as a series of values transferred using the Link Layer Discovery Protocol (LLDP). PFC Priority-based Flow Control, a DCB feature. App:FCoE The FCoE instance of application specific parameters in DCBX. CRITERIA USED FOR CONTROLLING THE FCOE INSTANCE
fcoemon uses two information sources for determining when to create an FCoE instance: the state of the network interface, which may be a VLAN interface, and, if required for the FCoE instance, the state of the DCB configuration on the physical Ethernet interface. First of all, the network interface must be "up" for the FCoE instance to be created. Secondly, if the FCoE configuration indicates that DCB is required, then the following criteria must be satisfied before the FCoE interface is created: o DCB is enabled on the Ethernet interface. o The PFC DCB feature is enabled and operational. o The App:FCoE DCB feature is enabled and operational. o The priority indicated by the App:FCoE feature is also enabled for PFC. Once the FCoE instance is created by fcoemon, it will only be destroyed under the following conditions: o The driver for the Ethernet interface is unloaded. o A user administratively destroys the FCoE instance using fcoeadm. o The fcoemon daemon is terminated. If DCB is required for the FCoE instance, and the DCB settings change after the interface is created, the following criteria are used to disable the FCoE instance: o DCB is disabled on the Ethernet interface. o The App:FCoE DCB feature is not enabled. o The App:FCoE and PFC features are operational AND the priority indicated by App:FCoE is not enabled for PFC. Otherwise, the FCoE instance will always remain enabled. CONFIGURATION
Once the fcoe-utils and lldpad packages have been installed and the corresponding services are running, there are a few simple configuration steps required to get an FCoE instance up and running. The following assumes that DCB will be required for the interface. o Ensure that the configuration on the peer device (e.g. FCoE capable switch) has the necessary configurations (VLANs, DCB, DCBX). o Configure any needed VLAN interfaces on the local system. o Create and configure /etc/fcoe/cfg-<ifname> files for the network interfaces over which FCoE instances need to be created. See the FILES sections for details. Note that ifname may be for a VLAN interface. o Restart the fcoe service (i.e. fcoemon). o The default DCB configuration of an Ethernet interface managed by lldpad requires the following configuration using dcbtool. dcbtool sc ethX dcb on <-- enable DCB on the interface dcbtool sc ethX app:fcoe e:1 <-- enable App:FCoE on the interface These steps only need to be done one time. Note that if other DCB configuration changes have been made with dcbtool, then additional changes may need to be made in order to satisfy the DCB criteria for creating an FCoE instance. Consult dcbtool for details. Once these configuration steps have been performed, use fcoeadm to query the status of the FCoE instances. FILES
/etc/fcoe/config This is the primary configuration file for the fcoe system service. FCOEMON_OPTS are the options we pass to fcoemon and SUPPORTED_DRIVERS is the list of drivers to automatically load during fcoe service start. Any changes to this file will require a restart of the fcoe service. /etc/fcoe/cfg-<ifname> These files are read by fcoemon on initialization. They are used to indicate which Ethernet or VLAN interfaces should have FCoE instances created. The option values in this file normally are: FCOE_ENABLE="yes", DCB_REQUIRED="yes", and AUTO_VLAN="yes", though if the variable values are omitted, they default to "no". FCOE_ENABLE is used to enable/disable creation of the FCoE instance. If FCoE_ENABLE is set to "no", then the other configuration values have no effect. DCB_REQUIRED indicates if the DCB service is required on the Ethernet interface. AUTO_VLAN indicates if VLAN discovery should be performed. If AUTO_VLAN is set to "yes", then once the link configuration has been validated, fcoemon will run run the FIP VLAN discovery protocol on the Ethernet interface. Network interfaces for any discovered FCoE VLANs will be automatically created, if they are not already configured, and FCoE instances will be created on the VLAN interfaces. If the network interface specified by the filename is already a VLAN interface, the AUTO_VLAN setting is ignored. MODE indicates whether operation will be in fabric or vn2vn mode. The default is fabric. FIP_RESP indicates whether a FIP responder should be activated on this device to support VLAN discovery in a vn2vn environment. The default is "no". Often this will be used on a vn2vn node also serving as a target. When using this option, the AUTO_VLAN should not be set and the supported VLANs should have configuration files supplied, constituting a static VLAN configuration that provides the information for the FIP responder to return. This should be set on a base device, which should probably have FCOE_ENABLE set to "no" since presumably FCoE operation will be on the configured VLANs. Note that the attached Ethernet peer device (e.g. FCoE capable switch port) must have compatible settings For DCB and FCoE to function properly. /etc/init.d/fcoe This is the fcoe system service script. This script is invoked by the init process or by the service command to start and stop the fcoemon. On systemd-enabled systems, fcoemon is controlled via the fcoe.service unit. VLAN NAMING CONVENTIONS
If a new VLAN device is created (see the description of the AUTO_VLAN setting above), it will have the name dev.vlan-fcoe; where dev is the name of the Ethernet parent device and vlan is the discovered VLAN ID number. SEE ALSO
fcoeadm(8) lldpad(8) lldptool(8) dcbtool(8) SUPPORT
fcoemon is part of the fcoe-utils package, maintained through the Open-FCoE project. Resources for both developers and users can be found at the Open-FCoE website http://open-fcoe.org/ Open-FCoE 02/06/2013 FCOEMON(8)
All times are GMT -4. The time now is 04:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy