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
dasdseq(1)						      General Commands Manual							dasdseq(1)

NAME
dasdseq - Hercules DSORG=PS retrieval command SYNOPSIS
dasdseq [options...] image [sf=shadow] filespec dasdseq [-debug] [-expert] [-ascii] image [sf=shadow] [attr] filespec [debugopts] [ascii] DESCRIPTION
Hercules command to retrieve a DSORG=PS (sequential) dataset from CKD/CCKD DASD. The dataset is presumed to be encoded in EBCDIC. The second form of the command is for 'expert mode' users, and allows more advanced access to data on the DASD image. OPTIONS
The following options are used to specify dasdseq behavior. Surround each option by blank(s). Options are divided into three categories: required, optional, and expert mode operands. Required operands image specifies the Hercules CKD/CCKD DASD filename (sometimes referred to as the DASD image file) filespec dataset name of the file to retrieve. Case insensitive, converted to upper case for searching VTOC on image DASD volume. Optional operands sf=shadow For CCKD images which also use shadow files, specifies the [path/]filename of the shadow file. Note the sf=, which must be present for this option. -ascii convert the output file to ASCII (from EBCDIC). Additionally, trailing blanks are trimmed. The 'ascii' option (no leading dash) is depre- cated, and may be removed in a future release. Expert mode operands All expert mode operands are considered to be experimental. dasdseq [-debug] [-expert] [-ascii] image [sf=shadow] [attr] filespec [debugopts] -debug Additional debug options are displayed. Specifying -debug will (eventually) display dataset extent information. attr dataset attributes (only useful with -abs) [-recfm fb] [-lrecl aa] -recfm designates RECFM, reserved for future support fb - fixed, blocked (only RECFM currently supported) -lrecl designates dataset LRECL aa - decimal logical record length (default 80) Blocksize need not be specified; dasdseq handles whatever block size comes off the volume. filespec composed of the following sub-operands, in the following order: heads, abs, filename. -heads xx defines # tracks per cylinder on device; xx = decimal number of heads per cylinder on device -abs cc hh tt [...] [-abs cc hh tt] -abs indicates the beginning of each extent's location in terms of absolute dasd image location. cc - decimal cylinder number (relative zero) hh - decimal head number (relative zero) tt - decimal number of tracks in extent When -abs is specified, each -abs group specifies one dataset extent. For multi-extent datasets, -abs groups may be repeated as needed, in the order in which the dataset's extents occur. A maximum of 123 extents are supported. With -abs, no VTOC structure is implied; a F1 DSCB will not be sought. Dasdseq will frequently report 'track not found in extent table' (along with a message from fbcopy about rc -1 from convert_tt) due to potentially missing EOF markers in the extent, and the fact that the F1 DSCB DS1LSTAR field is not valid. Check your output file before you panic. Fbcopy -abs ignores EOF, in case you are attempting to recovery PDS member(s) from a damaged dasd vol- ume, preferring to wait until all tracks in the extent have been processed. Tracks containing PDS members may have more than one EOF per track. Expect a lot of associated manual effort with -abs. When -abs is -not- specified, filename specifies the MVS DSORG=PS dataset on the volume. The dasd image volume containing the dataset must have a valid VTOC structure, and a F1 DSCB describing the dataset. filename will be the filename of the output file in the current directory; output filename in the same case as the command line filename. debugopts Produces debugging output, refer to the source code. verbose [x [y [z]]] verbose debug output level (default = 0 when not specified). Higher numbers produce more output. x main program (default = 1 when verbose specified) y copyfile + showf1 z dasdutil SEE ALSO
dasdpdsu for DSORG=PO datasets cckd(4) for CCKD DASD http://www.hercules-390.org/cckddasd.html which describes the Hercules CCKD DASD facility. http://www.hercules-390.org/ the Hercules emulator homepage. HISTORY
2003-03-10 originally written by James M. Morrison 2003-03-10 dasdseq(1)
All times are GMT -4. The time now is 08:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy